OSDN Git Service

Fix: can't guess UTF-16 and UTF-32.
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Sat, 21 Feb 2009 06:12:55 +0000 (15:12 +0900)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Sat, 21 Feb 2009 06:12:55 +0000 (15:12 +0900)
http://pc11.2ch.net/test/read.cgi/unix/1005206241/240

nkf.c

diff --git a/nkf.c b/nkf.c
index 35aacff..628a6f6 100644 (file)
--- a/nkf.c
+++ b/nkf.c
@@ -468,6 +468,8 @@ struct input_code input_code_list[] = {
     {"Shift_JIS", 0, 0, 0, {0, 0, 0}, s_status, s_iconv, 0},
 #ifdef UTF8_INPUT_ENABLE
     {"UTF-8",     0, 0, 0, {0, 0, 0}, w_status, w_iconv, 0},
+    {"UTF-16",     0, 0, 0, {0, 0, 0}, NULL, w_iconv16, 0},
+    {"UTF-32",     0, 0, 0, {0, 0, 0}, NULL, w_iconv32, 0},
 #endif
     {0}
 };