diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2010-02-17 16:08:48 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2010-02-17 16:08:48 +0000 |
commit | e2d723a2d03d46c5c29301757f516dc25934c8b7 (patch) | |
tree | 33c95d0b82aa54077a4507acd26bcc355ab8a8c2 /japanese/p5-nkf | |
parent | 2470c15c49ce9dfc007338ce6533eab072eec757 (diff) | |
download | ports-e2d723a2d03d46c5c29301757f516dc25934c8b7.tar.gz ports-e2d723a2d03d46c5c29301757f516dc25934c8b7.zip |
Notes
Diffstat (limited to 'japanese/p5-nkf')
-rw-r--r-- | japanese/p5-nkf/files/patch-NKF.xs | 33 | ||||
-rw-r--r-- | japanese/p5-nkf/files/patch-nkf.c | 46 |
2 files changed, 0 insertions, 79 deletions
diff --git a/japanese/p5-nkf/files/patch-NKF.xs b/japanese/p5-nkf/files/patch-NKF.xs deleted file mode 100644 index 60472da4840d..000000000000 --- a/japanese/p5-nkf/files/patch-NKF.xs +++ /dev/null @@ -1,33 +0,0 @@ ---- NKF.xs.orig 2009-01-20 18:49:31.000000000 +0900 -+++ NKF.xs 2009-04-12 22:34:31.574328548 +0900 -@@ -95,7 +95,10 @@ - - #define PERL_XS 1 - #include "../utf8tbl.c" -+#undef SP - #include "../nkf.c" -+#undef SP -+#define SP sp /* perl's CORE/pp.h */ - - /* package defenition */ - -@@ -134,9 +137,6 @@ - data = SvPV(ST(argc),i_len); - input_ctr = 0; - -- if(x0201_f == WISH_TRUE) -- x0201_f = ((!iso2022jp_f)? TRUE : NO_X0201); -- - /* allocate the result buffer */ - - /* During conversion, stirngs length may grow. This is the unit */ -@@ -178,9 +178,6 @@ - data = SvPV(ST(0),i_len); - input_ctr = 0; - -- if(x0201_f == WISH_TRUE) -- x0201_f = ((!iso2022jp_f)? TRUE : NO_X0201); -- - /* allocate the result buffer */ - - /* During conversion, stirngs length may grow. This is the unit */ diff --git a/japanese/p5-nkf/files/patch-nkf.c b/japanese/p5-nkf/files/patch-nkf.c deleted file mode 100644 index 26b9d9054c68..000000000000 --- a/japanese/p5-nkf/files/patch-nkf.c +++ /dev/null @@ -1,46 +0,0 @@ ---- ../nkf.c.orig 2009-01-20 18:49:31.000000000 +0900 -+++ ../nkf.c 2009-04-27 22:46:26.602103993 +0900 -@@ -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-21" - #define COPY_RIGHT \ - "Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \ - "Copyright (C) 1996-2009, The nkf Project." -@@ -468,6 +468,8 @@ - {"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} - }; -@@ -1426,6 +1428,7 @@ - output_endian = ENDIAN_LITTLE; - output_bom_f = TRUE; - break; -+ case UTF_32: - case UTF_32BE_BOM: - output_bom_f = TRUE; - break; -@@ -6159,9 +6162,6 @@ - output_endian = ENDIAN_LITTLE; - } else if (cp[0] == 'B') { - cp++; -- } else { -- output_encoding = nkf_enc_from_index(enc_idx); -- continue; - } - if (cp[0] == '0'){ - cp++; -@@ -6232,6 +6232,7 @@ - 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 */ |