Bug #70475 [Asn]: ext/mbstring/unicode_data.h needs update
| From: | laruence@php.net | Date: | Mon, 14 Sep 2015 03:02:36 +0000 |
| Subject: | Bug #70475 [Asn]: ext/mbstring/unicode_data.h needs update | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195989@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70475&edit=1
ID: 70475
Updated by: laruence@php.net
Reported by: cl at exomail dot to
Summary: ext/mbstring/unicode_data.h needs update
Status: Assigned
Type: Bug
Package: mbstring related
Operating System: all
PHP Version: Irrelevant
Assigned To: wez
Block user comment: N
Private report: N
New Comment:
Hmm, I have tried upgrade the unicode_data.h up to UnicodeData-8.0.0. but seems the behavior is till
the same, thus I am not sure should I do the update..
thanks
Previous Comments:
------------------------------------------------------------------------
[2015-09-11 13:43:56] cl at exomail dot to
Description:
------------
Looking at github the last update of php-src/ext/mbstring/unicode_data.h was
2010-10-05 42dae97fd49f8d5f5d45c6254794f41fc2b32c88
So the Unicode-Data (for mb_strtoupper, etc.) is FIVE(!) years old.
There is a nice website called http://unicode.org/
I know PHP is playing in a different league than other software languages (which try to follow
unicode changes as closely as possible). But think about looking every 3 or 4 years on this nice
Unicode webpage and include the "newest" changes.
Even for really "old" characters mb_strtoupper does nothing, like for
U+00DF (Ã) or U+0149 (Å).
Test script:
---------------
$str="\xc3\x9f"; echo $str." upper =>
".mb_strtoupper($str,'UTF-8')."\n";
$str="\xc5\x89"; echo $str." upper =>
".mb_strtoupper($str,'UTF-8')."\n";
Expected result:
----------------
expected output:
à upper => SS
Šupper => ʼN
Actual result:
--------------
output of testscript:
à upper => Ã
Å upper => Å
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70475&edit=1