diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-05-15 00:16:21 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-05-15 00:16:21 +0400 |
commit | 1cf38d075c0df8728237b1ef27d9cfc8876abf16 (patch) | |
tree | 5b370895475b001b57bf9af3fd789c2cc82e94e9 /newlib/libc/ctype/towupper.c | |
parent | 6f401eccfb260b64a35a55e54e0e403324921690 (diff) |
* libc/ctype/local.h (JP_JIS, JP_SJIS, JP_EUCJP): Move definition
to jp2uc.c.
(__jp2uc): Remove declaration.
(_jp2uc): Declare.
* libc/ctype/jp2uc.c (JP_JIS, JP_SJIS, JP_EUCJP): Define.
(__jp2uc): Remove Cygwin special case.
(_jp2uc): New function. On Cygwin, just return c.
* libc/ctype/iswalpha.c (iswalpha): Just call _jp2uc.
* libc/ctype/iswblank.c (iswblank): Ditto.
* libc/ctype/iswcntrl.c (iswcntrl): Ditto.
* libc/ctype/iswprint.c (iswprint): Ditto.
* libc/ctype/iswpunct.c (iswpunt): Ditto.
* libc/ctype/iswspace.c (iswspace): Ditto.
* libc/ctype/towlower.c (towlower): Ditto.
* libc/ctype/towupper.c (towupper): Ditto.
Diffstat (limited to 'newlib/libc/ctype/towupper.c')
-rw-r--r-- | newlib/libc/ctype/towupper.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/newlib/libc/ctype/towupper.c b/newlib/libc/ctype/towupper.c index dee9468bd..945266fea 100644 --- a/newlib/libc/ctype/towupper.c +++ b/newlib/libc/ctype/towupper.c @@ -70,13 +70,7 @@ wint_t _DEFUN(towupper,(c), wint_t c) { #ifdef _MB_CAPABLE - 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); if (c < 0x100) { if (c == 0x00b5) |