Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-25 12:00:03 +0300
committerCorinna Vinschen <corinna@vinschen.de>2009-03-25 12:00:03 +0300
commit790d0a4c646865efd60d478084a0534167c5f0c7 (patch)
tree72e0a561474ee91fd5a44b346d825b71cb3d583e /newlib/libc/locale/locale.c
parent4098799105b8c2bc7fba45fd0d61870bfad5faca (diff)
* libc/locale/locale.c (loadlocale): Rename charset "GBK" to
"GB2312". Fix documentation accordingly.
Diffstat (limited to 'newlib/libc/locale/locale.c')
-rw-r--r--newlib/libc/locale/locale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index 0bf004d9a..26379bef7 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -58,8 +58,8 @@ are <<"UTF-8">>, <<"JIS">>, <<"EUCJP">>/<<"eucJP">>, <<"SJIS">>,
(<<"">> is also accepted; if given, the settings are read from the
corresponding LC_* environment variables and $LANG according to POSIX rules.
-Under Cygwin, this implementation additionally supports the charsets <<"GBK">>,
-<<"eucKR">>, and <<"Big5">>.
+Under Cygwin, this implementation additionally supports the charsets
+<<"GB2312">>, <<"eucKR">>, and <<"Big5">>.
If you use <<NULL>> as the <[locale]> argument, <<setlocale>> returns
a pointer to the string representing the current locale (always
@@ -572,7 +572,7 @@ loadlocale(struct _reent *p, int category)
break;
#ifdef __CYGWIN__
case 'G':
- if (strcmp (charset, "GBK"))
+ if (strcmp (charset, "GB2312"))
return NULL;
mbc_max = 2;
#ifdef _MB_CAPABLE