1 --- a/src/locale/iconv.c
2 +++ b/src/locale/iconv.c
3 @@ -48,6 +48,7 @@ static const unsigned char charmaps[] =
9 "shiftjis\0sjis\0\0\321"
11 @@ -56,6 +57,7 @@ static const unsigned char charmaps[] =
13 "big5\0bigfive\0cp950\0big5hkscs\0\0\340"
14 "euckr\0ksc5601\0ksx1001\0cp949\0\0\350"
16 #include "codepages.h"
19 @@ -66,6 +68,7 @@ static const unsigned short legacy_chars
20 #include "legacychars.h"
24 static const unsigned short jis0208[84][94] = {
27 @@ -85,6 +88,7 @@ static const unsigned short hkscs[] = {
28 static const unsigned short ksc[93][94] = {
33 static const unsigned short rev_jis[] = {
35 @@ -205,6 +209,7 @@ static unsigned legacy_map(const unsigne
36 return x < 256 ? x : legacy_chars[x-256];
40 static unsigned uni_to_jis(unsigned c)
42 unsigned nel = sizeof rev_jis / sizeof *rev_jis;
43 @@ -223,6 +228,7 @@ static unsigned uni_to_jis(unsigned c)
49 size_t iconv(iconv_t cd, char **restrict in, size_t *restrict inb, char **restrict out, size_t *restrict outb)
51 @@ -319,6 +325,7 @@ size_t iconv(iconv_t cd, char **restrict
58 if (c-0xa1 <= 0xdf-0xa1) {
59 @@ -518,6 +525,7 @@ size_t iconv(iconv_t cd, char **restrict
66 c = legacy_map(map, c);
67 @@ -559,6 +567,7 @@ size_t iconv(iconv_t cd, char **restrict
73 if (c < 128) goto revout;
75 @@ -632,6 +641,7 @@ size_t iconv(iconv_t cd, char **restrict
83 --- a/src/locale/codepages.h
84 +++ b/src/locale/codepages.h
86 "\340\204\43\316\100\344\34\144\316\71\350\244\243\316\72\354\264\343\316\73"
87 "\21\361\44\317\74\364\30\145\17\124\146\345\243\317\76\374\134\304\327\77"
94 "\20\105\163\330\64\324\324\145\315\65\330\144\243\315\66\334\334\145\330\67"
95 "\340\204\43\316\100\344\224\143\316\71\350\244\243\316\72\205\265\343\316\73"
96 "\21\305\203\330\74\364\330\145\317\75\370\344\243\317\76\374\340\65\362\77"