|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-01-27 10:35 UTC] felipe@php.net
[2009-02-02 04:54 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
Description: ------------ (Actual) mb_convert_encoding() mistranslates the Euro symbol (€, Unicode codepoint U+20AC) into character encoding CP936 as: 0x00 0x80 (Expected) The correct translation is: 0x80 (Affects) This defect is present in CVS HEAD, & version 4.4.7. (Patch) Index: php/ext/mbstring/libmbfl/filters/mbfilter_cp936.c =================================================================== --- php/ext/mbstring/libmbfl/filters/mbfilter_cp936.c (revision 15404) +++ php/ext/mbstring/libmbfl/filters/mbfilter_cp936.c (revision 22611) @@ -193,5 +193,5 @@ } if (s >= 0) { - if (s < 0x80) { /* latin */ + if (s <= 0x80) { /* latin + euro sign */ CK((*filter->output_function)(s, filter- >data)); } else {