* libc/locale/locale.c (loadlocale): Allow charset starting with 'e'

for "eucJP" charset support.
This commit is contained in:
Corinna Vinschen 2009-03-24 16:56:33 +00:00
parent ba8f298cbc
commit 62e51f09f9
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-03-24 Corinna Vinschen <corinna@vinschen.de>
* libc/locale/locale.c (loadlocale): Allow charset starting with 'e'
for "eucJP" charset support.
2009-03-24 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/errno.h: Move EFTYPE to general usage because

View File

@ -463,6 +463,7 @@ loadlocale(struct _reent *p, int category)
#endif
break;
case 'E':
case 'e':
if (strcmp (charset, "EUCJP") && strcmp (charset, "eucJP"))
return NULL;
strcpy (charset, "EUCJP");