OSDN Git Service

Fix ESC + multibyte char decode in Shift_JIS input
[nkf/nkf.git] / nkf.c
diff --git a/nkf.c b/nkf.c
index 705fb55..fd593d9 100644 (file)
--- a/nkf.c
+++ b/nkf.c
@@ -6189,9 +6189,10 @@ kanji_convert(FILE *f)
                    }
                }
                else {
+                   i_ungetc(c1,f);
                    /* lonely ESC  */
                    (*oconv)(0, ESC);
-                   SEND;
+                   SKIP;
                }
            } else if (c1 == LF || c1 == CR) {
                if (broken_f&4) {