diff options
author | jdolecek <jdolecek> | 2005-10-16 12:17:47 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2005-10-16 12:17:47 +0000 |
commit | e4126b514dc3299127e62a57361d729d84f63636 (patch) | |
tree | 82f0f8be87aba06ef02d240a9cc4cfbe0e545743 /lang | |
parent | 380fc5b7d04e8dc245d98ef5e8768ef1b2a655ae (diff) | |
download | pkgsrc-e4126b514dc3299127e62a57361d729d84f63636.tar.gz |
Fix bug in mbstring extension function mb_encode_mimeheader(), which
misinterpreted some Japanese characters as ASCII.
PR: 31223 by Takahiro Kambe
Diffstat (limited to 'lang')
-rw-r--r-- | lang/php5/distinfo | 3 | ||||
-rw-r--r-- | lang/php5/patches/patch-an | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lang/php5/distinfo b/lang/php5/distinfo index fd69825879f..4cb6dff6ecc 100644 --- a/lang/php5/distinfo +++ b/lang/php5/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.9 2005/10/07 21:09:28 jdolecek Exp $ +$NetBSD: distinfo,v 1.10 2005/10/16 12:17:47 jdolecek Exp $ SHA1 (php-5.0.5.tar.bz2) = ffcc050f879265eb96f2c8dc79fa895047da9d4a RMD160 (php-5.0.5.tar.bz2) = 6a9a892affba229770154407860cd1c2a098eaf9 @@ -7,3 +7,4 @@ SHA1 (patch-aj) = cc68ce876dc5998becbe2f1f74288b5da5bbaca3 SHA1 (patch-ak) = 0faa523103e0a9a3c01c78c2fe9a64c0a9b2fc43 SHA1 (patch-al) = 28ad9006b387e2b9984ad49beea21c9d46e63b46 SHA1 (patch-am) = 0de0be745262c1e986062c7a50261dbe58f97ac9 +SHA1 (patch-an) = dfe696f416ab5deffd38150441a65246a4816cf4 diff --git a/lang/php5/patches/patch-an b/lang/php5/patches/patch-an new file mode 100644 index 00000000000..e708f67cab6 --- /dev/null +++ b/lang/php5/patches/patch-an @@ -0,0 +1,13 @@ +$NetBSD: patch-an,v 1.1 2005/10/16 12:17:47 jdolecek Exp $ + +--- ext/mbstring/libmbfl/mbfl/mbfilter.c.orig 2005-10-16 14:09:17.000000000 +0200 ++++ ext/mbstring/libmbfl/mbfl/mbfilter.c 2005-10-16 14:09:21.000000000 +0200 +@@ -1990,7 +1990,7 @@ + break; + + default: /* ASCII */ +- if (!qp_table[(c & 0xff)]) { /* ordinary characters */ ++ if (c >= 0 && c < 0x100 && !qp_table[(c & 0xff)]) { /* ordinary characters */ + mbfl_memory_device_output(c, &pe->tmpdev); + pe->status1 = 1; + } else if (pe->status1 == 0 && c == 0x20) { /* repeat SPACE */ |