Handle Yen in overscore conversion from ISO 10646 correctly.
authordrepper <drepper>
Tue, 8 Dec 1998 13:09:06 +0000 (13:09 +0000)
committerdrepper <drepper>
Tue, 8 Dec 1998 13:09:06 +0000 (13:09 +0000)
iconvdata/eucjp.c

index 96e0756..4936e40 100644 (file)
     if (ch <= 0x7f)                                                          \
       /* It's plain ASCII.  */                                               \
       *outptr++ = ch;                                                        \
     if (ch <= 0x7f)                                                          \
       /* It's plain ASCII.  */                                               \
       *outptr++ = ch;                                                        \
+    else if (ch == 0xa5)                                                     \
+      /* YEN sign => backslash  */                                           \
+      *outptr++ = 0x5c;                                                              \
+    else if (ch == 0x203e)                                                   \
+      /* overscore => asciitilde */                                          \
+      *outptr++ = 0x7e;                                                              \
     else                                                                     \
       {                                                                              \
        /* Try the JIS character sets.  */                                    \
     else                                                                     \
       {                                                                              \
        /* Try the JIS character sets.  */                                    \