summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-04-06 10:36:49 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-04-06 10:36:49 +0000
commit2f1769f4311277551864327667e2a713b7daafab (patch)
treee91c79265cb64de5b16cbfdf81fc8efd93e4aa49
parent115655f1f334d4a65e740246de533b9dfd4bb383 (diff)
downloadcygnal-2f1769f4311277551864327667e2a713b7daafab.tar.gz
cygnal-2f1769f4311277551864327667e2a713b7daafab.tar.bz2
cygnal-2f1769f4311277551864327667e2a713b7daafab.zip
* libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/locale/locale.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 4e092b5b2..8be81c377 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-06 Corinna Vinschen <corinna@vinschen.de>
+
+ * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
+
2009-04-04 Corinna Vinschen <corinna@vinschen.de>
* libc/stdlib/wcstombs.c: Fix datatypes in documentation.
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index e93f78021..b5a0ee74c 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -468,7 +468,7 @@ loadlocale(struct _reent *p, int category)
if (!strcmp (charset, "EUCJP") || !strcmp (charset, "eucJP"))
{
strcpy (charset, "EUCJP");
- mbc_max = 2;
+ mbc_max = 3;
#ifdef _MB_CAPABLE
l_wctomb = __eucjp_wctomb;
l_mbtowc = __eucjp_mbtowc;