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:
authorJeff Johnston <jjohnstn@redhat.com>2009-08-25 22:47:24 +0400
committerJeff Johnston <jjohnstn@redhat.com>2009-08-25 22:47:24 +0400
commiteb9194f52c2008366326319582c7329550d4708e (patch)
tree8dc2b90eb8051b4a25eb82175b017933d88b7e29 /newlib/libc/locale/locale.c
parentc177980e756d448fb7a9afc9b814fa3da3cc7bb8 (diff)
2009-08-25 Andy Koppe <andy.koppe@gmail.com>
* libc/stdlib/sb_charsets.c (__micro_atoi): Allow five-digit codepage numbers. * libc/locale/locale.c (loadlocale): Set MB_CUR_MAX to 1 for KOI8 charsets. * libc/stdlib/local.h (__cp_conv): Remove incorrect number of codepages.
Diffstat (limited to 'newlib/libc/locale/locale.c')
-rw-r--r--newlib/libc/locale/locale.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index 19159fbca..a01b312f8 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -624,6 +624,7 @@ loadlocale(struct _reent *p, int category)
strcpy (charset, "CP21866");
else
return NULL;
+ mbc_max = 1;
#ifdef _MB_CAPABLE
#ifdef _MB_EXTENDED_CHARSETS_WINDOWS
l_wctomb = __cp_wctomb;