Bug #70475 [NEW]: ext/mbstring/unicode_data.h needs update
| From: | cl at exomail dot to | Date: | Fri, 11 Sep 2015 13:44:00 +0000 |
| Subject: | Bug #70475 [NEW]: ext/mbstring/unicode_data.h needs update | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-195960@lists.php.net to get a copy of this message | ||
From: cl at exomail dot to
Operating system: all
PHP version: Irrelevant
Package: mbstring related
Bug Type: Bug
Bug description:ext/mbstring/unicode_data.h needs update
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 bug report at https://bugs.php.net/bug.php?id=70475&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70475&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70475&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70475&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70475&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70475&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70475&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70475&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70475&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70475&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70475&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70475&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70475&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70475&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70475&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70475&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70475&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70475&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70475&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70475&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70475&r=mysqlcfg