浏览代码

iconv: add aliases for GBK

these are taken from the IANA registry, restricted to those that match
the forms already used for other supported character encodings.
Rich Felker 1 年之前
父节点
当前提交
b5121e2ed8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/locale/iconv.c

+ 1 - 1
src/locale/iconv.c

@@ -52,7 +52,7 @@ static const unsigned char charmaps[] =
 "shiftjis\0sjis\0cp932\0\0\321"
 "iso2022jp\0\0\322"
 "gb18030\0\0\330"
-"gbk\0\0\331"
+"gbk\0cp936\0windows936\0\0\331"
 "gb2312\0\0\332"
 "big5\0bigfive\0cp950\0big5hkscs\0\0\340"
 "euckr\0ksc5601\0ksx1001\0cp949\0\0\350"