OSDN Git Service

Fix ESC + ESC-sequence chars decode in ISO-2022-JP input
authorSATOH Fumiyasu <fumiyas@osstech.co.jp>
Fri, 25 Oct 2013 12:14:35 +0000 (21:14 +0900)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Wed, 6 Nov 2013 02:20:39 +0000 (11:20 +0900)
nkf.c

diff --git a/nkf.c b/nkf.c
index fd593d9..b94afcb 100644 (file)
--- a/nkf.c
+++ b/nkf.c
@@ -6150,9 +6150,10 @@ kanji_convert(FILE *f)
                    }
                }
                else {
+                   i_ungetc(c1,f);
                    /* lonely ESC  */
                    (*oconv)(0, ESC);
-                   SEND;
+                   SKIP;
                }
            } else if (c1 == ESC && iconv == s_iconv) {
                /* ESC in Shift_JIS */