diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2010-02-06 21:28:33 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2010-02-06 21:28:33 +0300 |
commit | 5eb556c8497ddd680c28e53e04c4badfe612004a (patch) | |
tree | a9d05f6982f2d8cf3b670e1e0d00655d8eaeea99 /newlib/libc/locale/nl_langinfo.c | |
parent | 38d9821daf5c631d2c8f12bc772961973edaba0c (diff) |
* libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
(_CTYPE_GEORGIAN_PS_255): Define.
(_CTYPE_PT154_128_254): Define.
(_CTYPE_PT154_255): Define.
(__ctype_cp): Add array members for above ctype definitions.
* libc/locale/locale.c (loadlocale): Make TIS-620 charset name
available for all targets. Add guards for setting the conversion
function pointers. Add support for GEORGIAN-PS and PT154 charsets.
Change documentation to reflect current behaviour more closely.
* libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
"CP101" to "GEORGIAN-PS" and "CP102" to "PT154".
* libc/stdlib/sb_charsets.c (__cp_conv): Add conversion arrays
for GEORGIAN-PS and PT154.
(__cp_index): Map invalid Windows codepage number 101 to
GEORGIAN-PS conversion array, 102 to PT154 conversion array.
Diffstat (limited to 'newlib/libc/locale/nl_langinfo.c')
-rw-r--r-- | newlib/libc/locale/nl_langinfo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/newlib/libc/locale/nl_langinfo.c b/newlib/libc/locale/nl_langinfo.c index cd86c158d..8e8856de7 100644 --- a/newlib/libc/locale/nl_langinfo.c +++ b/newlib/libc/locale/nl_langinfo.c @@ -78,6 +78,10 @@ _DEFUN(nl_langinfo, (item), ret = "KOI8-R"; else if (strcmp (ret + 2, "21866") == 0) ret = "KOI8-U"; + else if (strcmp (ret + 2, "101") == 0) + ret = "GEORGIAN-PS"; + else if (strcmp (ret + 2, "102") == 0) + ret = "PT154"; } else if (ret[0] == 'S'/*JIS*/) { |