OSDN Git Service

* nkf.c (kanji_convert): output unicode chars. [ruby-dev:36957]
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Tue, 28 Oct 2008 23:26:31 +0000 (23:26 +0000)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Tue, 28 Oct 2008 23:26:31 +0000 (23:26 +0000)
nkf.c

diff --git a/nkf.c b/nkf.c
index 045d877..d21c641 100644 (file)
--- a/nkf.c
+++ b/nkf.c
@@ -31,7 +31,7 @@
  * \e$B8=:_!"\e(Bnkf \e$B$O\e(B SorceForge \e$B$K$F%a%s%F%J%s%9$,B3$1$i$l$F$$$^$9!#\e(B
  * 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) {