]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(ucs4_to_jisx0201): Correct mapping for U005C.
authorUlrich Drepper <drepper@redhat.com>
Mon, 6 Sep 1999 07:54:26 +0000 (07:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 6 Sep 1999 07:54:26 +0000 (07:54 +0000)
iconvdata/jis0201.h

index 362da17c0e233612e797af15948378ae5168374b..435d7584ab1de2551216ddd5730218debcaa909f 100644 (file)
@@ -1,5 +1,5 @@
 /* Access functions for JISX0201 conversion.
-   Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
 
@@ -46,7 +46,7 @@ ucs4_to_jisx0201 (uint32_t wch, char *s)
     ch = '\x5c';
   else if (wch == 0x203e)
     ch = '\x7e';
-  else if (wch < 0x7e)
+  else if (wch < 0x7e && wch != 0x5c)
     ch = wch;
   else if (wch >= 0xff61 && wch <= 0xff9f)
     ch = wch - 0xfec0;