From 6183556aa933136c1b2cff4ebedbd5bce4132fa4 Mon Sep 17 00:00:00 2001 From: NARUSE Yui Date: Tue, 23 Jun 2009 05:32:56 +0900 Subject: [PATCH] cp932inv_f is FALSE if output is ISO-2022-JP. --- nkf.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nkf.c b/nkf.c index 5f52748..ef51af6 100644 --- 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 -- 2.11.0