Handle Yen in overscore conversion from ISO 10646 correctly.
[kopensolaris-gnu/glibc.git] / iconvdata / eucjp.c
index 24ebed9..4936e40 100644 (file)
@@ -25,7 +25,7 @@
 #include <jis0212.h>
 
 /* Definitions used in the body of the `gconv' function.  */
-#define CHARSET_NAME           "EUC-JP"
+#define CHARSET_NAME           "EUC-JP//"
 #define FROM_LOOP              from_euc_jp
 #define TO_LOOP                        to_euc_jp
 #define DEFINE_INIT            1
     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.  */                                    \