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.
This commit is contained in:
Jeff Johnston
2009-08-25 18:47:24 +00:00
parent c177980e75
commit eb9194f52c
4 changed files with 11 additions and 2 deletions

View 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');
}