From: NARUSE Yui Date: Thu, 20 Aug 2009 23:46:26 +0000 (+0900) Subject: Output \e in SJIS and UTF-8. [ruby-dev:39120] X-Git-Tag: v2_1_0~4 X-Git-Url: http://git.sourceforge.jp/view?p=nkf%2Fnkf.git;a=commitdiff_plain;h=574b268e5c59631201e578f7d34f940d970ad59a;hp=c233b583915b9c6605efe624c649ab9ffd3be96c Output \e in SJIS and UTF-8. [ruby-dev:39120] --- diff --git a/nkf.c b/nkf.c index 162a173..4230199 100644 --- a/nkf.c +++ b/nkf.c @@ -5530,7 +5530,7 @@ kanji_convert(FILE *f) SKIP; } else if (c1 == ESC && (!is_8bit || mime_decode_mode)) { if ((c1 = (*i_getc)(f)) == EOF) { - /* (*oconv)(0, ESC); don't send bogus code */ + (*oconv)(0, ESC); LAST; } else if (c1 == '&') { @@ -5660,7 +5660,7 @@ kanji_convert(FILE *f) } else if (c1 == ESC && iconv == s_iconv) { /* ESC in Shift_JIS */ if ((c1 = (*i_getc)(f)) == EOF) { - /* (*oconv)(0, ESC); don't send bogus code */ + (*oconv)(0, ESC); LAST; } else if (c1 == '$') { /* J-PHONE emoji */