OSDN Git Service

cp932inv_f is FALSE if output is ISO-2022-JP.
authorNARUSE Yui <naruse@users.sourceforge.jp>
Mon, 22 Jun 2009 20:32:56 +0000 (05:32 +0900)
committerNARUSE Yui <naruse@users.sourceforge.jp>
Mon, 22 Jun 2009 20:32:56 +0000 (05:32 +0900)
nkf.c

diff --git a/nkf.c b/nkf.c
index 5f52748..ef51af6 100644 (file)
--- a/nkf.c
+++ b/nkf.c
@@ -21,7 +21,7 @@
  * 3. This notice may not be removed or altered from any source distribution.
  */
 #define NKF_VERSION "2.0.9"
-#define NKF_RELEASE_DATE "2009-04-26"
+#define NKF_RELEASE_DATE "2009-06-23"
 #define COPY_RIGHT \
     "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \
     "Copyright (C) 1996-2009, The nkf Project."
@@ -1334,6 +1334,11 @@ set_output_encoding(nkf_encoding *enc)
        ms_ucs_map_f = UCS_MAP_CP932;
 #endif
        break;
+    case ISO_2022_JP:
+#ifdef SHIFTJIS_CP932
+       if (cp932inv_f == TRUE) cp932inv_f = FALSE;
+#endif
+       break;
     case ISO_2022_JP_1:
        x0212_f = TRUE;
 #ifdef SHIFTJIS_CP932