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>2010-03-28 00:04:49 +0300
committerCorinna Vinschen <corinna@vinschen.de>2010-03-28 00:04:49 +0300
commiteca2df4f0103bd8e6229a93f407714beef1e423a (patch)
tree5ac28005fa18113de73811b3e3b98e2dad64ee5c /newlib/libc/locale/nl_langinfo.c
parent8a3cfef325721f06811e199e38f3c43de31e5a15 (diff)
* libc/locale/locale.c (loadlocale): Optimize "EUC" charset check.
Cygwin only: Allow GB2312 and EUC-CN as alternative codeset names for GBK. Add to documentation. * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate EUCCN to GB2312.
Diffstat (limited to 'newlib/libc/locale/nl_langinfo.c')
-rw-r--r--newlib/libc/locale/nl_langinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/locale/nl_langinfo.c b/newlib/libc/locale/nl_langinfo.c
index 14cd07a5e..d4f30e932 100644
--- a/newlib/libc/locale/nl_langinfo.c
+++ b/newlib/libc/locale/nl_langinfo.c
@@ -69,6 +69,8 @@ _DEFUN(nl_langinfo, (item),
ret = "EUC-JP";
else if (strcmp (ret, "EUCKR") == 0)
ret = "EUC-KR";
+ else if (strcmp (ret, "EUCCN") == 0)
+ ret = "GB2312";
}
else if (ret[0] == 'C'/*Pxxxx*/)
{