]> sourceware.org Git - newlib-cygwin.git/commitdiff
2009-08-25 Andy Koppe <andy.koppe@gmail.com>
authorJeff Johnston <jjohnstn@redhat.com>
Tue, 25 Aug 2009 18:47:24 +0000 (18:47 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Tue, 25 Aug 2009 18:47:24 +0000 (18:47 +0000)
        * 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.

newlib/ChangeLog
newlib/libc/locale/locale.c
newlib/libc/stdlib/local.h
newlib/libc/stdlib/sb_charsets.c

index 779c9b96f807771097c9d938a49afc50f337248e..3405b828b6dd07a34e66c4bcc9322fca93dce961 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2009-08-24  Corinna Vinschen  <corinna@vinschen.de>
 
        * libc/locale/locale.c: Update documentation.
index 19159fbca737857e22da2f4f4bdd8f8ef42139ce..a01b312f873f2313cfa2381ea244289abaa8a694 100644 (file)
@@ -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;
index 93a3b4b8ecb8f0ca0a83a4533ae17b6da708a1d9..12e6998c11183f06d5025502f9f3d81e6b8d0c53 100644 (file)
@@ -60,7 +60,7 @@ int __big5_mbtowc (struct _reent *, wchar_t *, const char *, size_t,
 extern wchar_t __iso_8859_conv[14][0x60];
 int __iso_8859_index (const char *);
 
-extern wchar_t __cp_conv[12][0x80];
+extern wchar_t __cp_conv[][0x80];
 int __cp_index (const char *);
 
 #endif
index 03c92064c8037863a4f20e142eabda22ed9fc9a0..dce4855d75863cfbc76628054e3240231e599477 100644 (file)
@@ -625,7 +625,7 @@ __micro_atoi (const char *s)
     return -1;
   while (*s)
     {
-      if (*s < '0' || *s > '9' || ret >= 10000)
+      if (*s < '0' || *s > '9' || ret >= 100000)
        return -1;
       ret = 10 * ret + (*s++ - '0');
     }
This page took 0.049158 seconds and 5 git commands to generate.