* strfuncs.cc (__set_charset_from_codepage): Revert to translating
codepage 936 to "GBK".
This commit is contained in:
parent
e916d8ec86
commit
fa0853e168
@ -1,3 +1,8 @@
|
|||||||
|
2009-03-26 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* strfuncs.cc (__set_charset_from_codepage): Revert to translating
|
||||||
|
codepage 936 to "GBK".
|
||||||
|
|
||||||
2009-03-25 Corinna Vinschen <corinna@vinschen.de>
|
2009-03-25 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* strfuncs.cc (sys_wcstombs): Don't convert ASCII SO into two
|
* strfuncs.cc (sys_wcstombs): Don't convert ASCII SO into two
|
||||||
|
@ -28,7 +28,7 @@ details. */
|
|||||||
implementation of the base functions for the conversion using
|
implementation of the base functions for the conversion using
|
||||||
the MulitByteToWideChar/WideCharToMultiByte functions. */
|
the MulitByteToWideChar/WideCharToMultiByte functions. */
|
||||||
|
|
||||||
/* GB2312, eucKR, and Big5 conversions are not available so far in newlib. */
|
/* GBK, eucKR, and Big5 conversions are not available so far in newlib. */
|
||||||
|
|
||||||
static int
|
static int
|
||||||
__db_wctomb (struct _reent *r, char *s, wchar_t wchar, UINT cp)
|
__db_wctomb (struct _reent *r, char *s, wchar_t wchar, UINT cp)
|
||||||
@ -253,7 +253,7 @@ __set_charset_from_codepage (UINT cp, char *charset)
|
|||||||
strcpy (charset, "SJIS");
|
strcpy (charset, "SJIS");
|
||||||
return __sjis_mbtowc;
|
return __sjis_mbtowc;
|
||||||
case 936:
|
case 936:
|
||||||
strcpy (charset, "GB2312");
|
strcpy (charset, "GBK");
|
||||||
return __gbk_mbtowc;
|
return __gbk_mbtowc;
|
||||||
case 949:
|
case 949:
|
||||||
case 51949:
|
case 51949:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user