@@ -41,7 +41,7 @@ for instance <<"C.UTF-8">>, which keeps all settings as in the C locale,
41
41
but uses the UTF-8 charset.
42
42
43
43
The following charsets are recognized:
44
- <<"UTF-8">>, <<"JIS">>, <<"EUCJP">>, <<"SJIS ">>, <<"KOI8-R">>, <<"KOI8-U">>,
44
+ <<"UTF-8">>, <<"JIS">>, <<"EUCJP">>, <<"SHIFT-JIS ">>, <<"KOI8-R">>, <<"KOI8-U">>,
45
45
<<"KOI8-T">>, <<"GEORGIAN-PS">>, <<"PT154">>, <<"TIS-620">>, <<"ISO-8859-x">>
46
46
with 1 <= x <= 16, or <<"CPxxx">> with xxx in [437, 720, 737, 775, 850, 852,
47
47
855, 857, 858, 862, 866, 874, 932, 1125, 1250, 1251, 1252, 1253, 1254, 1255,
@@ -618,9 +618,9 @@ __loadlocale (struct __locale_t *loc, int category, char *new_locale)
618
618
break ;
619
619
case 'S' :
620
620
case 's' :
621
- if (strcasecmp (charset , "SJIS" ))
621
+ if (strcasecmp (charset , "SJIS" ) && strcasecmp ( charset , "SHIFT-JIS" ) )
622
622
FAIL ;
623
- strcpy (charset , "SJIS " );
623
+ strcpy (charset , "SHIFT-JIS " );
624
624
mbc_max = 2 ;
625
625
l_wctomb = __sjis_wctomb ;
626
626
l_mbtowc = __sjis_mbtowc ;
0 commit comments