OSDN Git Service

* libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / ctype / iswalpha.c
index 4e2ad6b..ab67857 100644 (file)
@@ -76,12 +76,7 @@ _DEFUN(iswalpha,(c), wint_t c)
   int size;
   wint_t x;
 
-  if (!strcmp (__locale_charset (), "JIS"))
-    c = __jp2uc (c, JP_JIS);
-  else if (!strcmp (__locale_charset (), "SJIS"))
-    c = __jp2uc (c, JP_SJIS);
-  else if (!strcmp (__locale_charset (), "EUCJP"))
-    c = __jp2uc (c, JP_EUCJP);
+  c = _jp2uc (c);
 
   x = (c >> 8);
   /* for some large sections, all characters are alphabetic so handle them here */