From 84febbdbb891e943f37bec5d57cd74e64f247cb1 Mon Sep 17 00:00:00 2001 From: "NARUSE, Yui" Date: Fri, 20 Feb 2009 06:21:01 +0900 Subject: [PATCH] Fix: -Z1 and -Z2 doesn't include -Z0. [nkf-forum#41992] --- nkf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nkf.c b/nkf.c index da1c766..35aacff 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-01-20" +#define NKF_RELEASE_DATE "2009-02-20" #define COPY_RIGHT \ "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \ "Copyright (C) 1996-2009, The nkf Project." @@ -6232,6 +6232,7 @@ options(unsigned char *cp) while ('0'<= *cp && *cp <='9') { alpha_f |= 1 << (*cp++ - '0'); } + if (alpha_f & ((1 << 2) | (1 << 3))) alpha_f |= 1; if (!alpha_f) alpha_f = 1; continue; case 'x': /* Convert X0201 kana to X0208 or X0201 Conversion */ -- 2.11.0