From: sweiss at stylesight dot com Operating system: Debian Etch and RHEL 5 PHP version: 5.3.0 PHP Bug Type: I18N and L10N related Bug description: strtoupper does not make all characters upper with proper locale set
Description: ------------ As reported and closed out in 22003 21771 35583 42063 strtoupper() does not actually convert accented characters to uppercase, even if you do set the locale. As PHP 5.3 was only released days ago it seems unlikely 6 will be out anytime soon. If this feature isn't actually going to be there for a long time, then it would be much more considerate to stop stating you have this feature already in your documentation. We used strtoupper everywhere on a 300-file localization project and had no reason to believe it wouldn't work through 3 different (CJK) languages until we got to Spanish and realized it was bogus. Reproduce code: --------------- var_dump(setlocale(LC_ALL, "es_MX.utf8")); $str = "á\n"; echo(strtoupper($str)); Expected result: ---------------- string(10) "es_MX.utf8" Á Actual result: -------------- string(10) "es_MX.utf8" á -- Edit bug report at http://bugs.php.net/?id=48871&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48871&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48871&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48871&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48871&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48871&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48871&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48871&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48871&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48871&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48871&r=support Expected behavior: http://bugs.php.net/fix.php?id=48871&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48871&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48871&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48871&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48871&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48871&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48871&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48871&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48871&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48871&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48871&r=mysqlcfg