From c25eef6a0cb282348fe697fa2881c79efc328e15 Mon Sep 17 00:00:00 2001 From: SATOH Fumiyasu Date: Fri, 25 Oct 2013 17:28:03 +0900 Subject: [PATCH 1/1] Fix ESC + multibyte char decode in Shift_JIS input --- nkf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nkf.c b/nkf.c index 705fb55..fd593d9 100644 --- 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) { -- 2.11.0