From: ivan dot delchev at softconsultgroup dot com
Operating system: Windows XP
PHP version: 5.2.3
PHP Bug Type: *Unicode Issues
Bug description: mb_strtoupper is replacing one of the cyrillic symbols with
wrong one.
Description:
------------
mb_strtoupper is doind wrong transformation for "å" in cyrillic
alphabetic. Whe wrong transformation "å"->"í".
Also the function is not UPPER the string!
Reproduce code:
---------------
// Ensure that the web browser encoding is UTF8 and edit application is
UTF8 compatible!
$main_string = "Òîâà å òåñò. Îòíîâî Òåñò. Êàêâî áè ñå ïîëó÷èëî ñ òîçè
ÒÅÑÒ äà âèäèì!";
var_dump($main_string);
var_dump(mb_strtoupper($main_string));
Expected result:
----------------
Dumped result to be the same. And second string to be UPPER!
Actual result:
--------------
string(120) "Òîâà å òåñò. Îòíîâî Òåñò. Êàêâî áè ñå ïîëó÷èëî ñ òîçè ÒÅÑÒ äà
âèäèì!"
string(120) "Òîâà ï òïñò. Îòíîâî Òïñò. Êàêâî áè ñï ïîëó÷èëî ñ òîçè ÒÅÑÒ äà
âèäèì!"
--
Edit bug report at http://bugs.php.net/?id=42393&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42393&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42393&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42393&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42393&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42393&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42393&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42393&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42393&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42393&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42393&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42393&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42393&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42393&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42393&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42393&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42393&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42393&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42393&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42393&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42393&r=mysqlcfg