From: NARUSE, Yui Date: Tue, 28 Oct 2008 23:26:31 +0000 (+0000) Subject: * nkf.c (kanji_convert): output unicode chars. [ruby-dev:36957] X-Git-Tag: v2_0_9~31 X-Git-Url: http://git.osdn.net/view?p=nkf%2Fnkf.git;a=commitdiff_plain;h=f33b47a817f74fb71b996fa99b9742a31172cc24 * nkf.c (kanji_convert): output unicode chars. [ruby-dev:36957] --- diff --git a/nkf.c b/nkf.c index 045d877..d21c641 100644 --- a/nkf.c +++ b/nkf.c @@ -31,7 +31,7 @@ * 現在、nkf は SorceForge にてメンテナンスが続けられています。 * http://sourceforge.jp/projects/nkf/ ***********************************************************************/ -#define NKF_IDENT "$Id: nkf.c,v 1.185 2008/10/28 13:42:25 naruse Exp $" +#define NKF_IDENT "$Id: nkf.c,v 1.186 2008/10/28 14:26:31 naruse Exp $" #define NKF_VERSION "2.0.8" #define NKF_RELEASE_DATE "2008-10-28" #define COPY_RIGHT \ @@ -5341,6 +5341,10 @@ kanji_convert(FILE *f) SEND; } } + else if (nkf_char_unicode_p(c1)) { + (*oconv)(0, c1); + NEXT; + } else { /* first byte */ if (input_mode == JIS_X_0208 && DEL <= c1 && c1 < 0x92) {