#32958 [NEW]: strtoupper/strtolower do not convert some 8859-2 characters

From: Date: Thu, 05 May 2005 15:34:52 +0000
Subject: #32958 [NEW]: strtoupper/strtolower do not convert some 8859-2 characters
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-78660@lists.php.net to get a copy of this message
From: kirchner at cm-sec dot cz Operating system: Linux Debian PHP version: 4.3.10 PHP Bug Type: Strings related Bug description: strtoupper/strtolower do not convert some 8859-2 characters Description: ------------ Functions "strtolower" and "strtoupper" do not convert some Czech characters from 8859-2 charset. I tested it and I found, that these functions do not convert characters "š"/"Š", ""/"" and "ž"/"Ž", but other special Czech characters are converted correctly. Remark: We most often use two charsets in our country: ISO 8859-2 for Unix like systems and CP1250 (windows-1250) for Windows systems. Special Czech characters have the same hexadecimal value in both charsets except of mentioned characters (š,Š,,,ž,Ž). I thing, that my locale is set correctly. Here are three rows from output of the phpinfo() function. default_charset ISO-8859-2 ISO-8859-2 _ENV["LC_ALL"] cs_CZ _ENV["LANG"] cs_CZ Best regards Jan Kirchner -- Edit bug report at http://bugs.php.net/?id=32958&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32958&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32958&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32958&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32958&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32958&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32958&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32958&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32958&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32958&r=support Expected behavior: http://bugs.php.net/fix.php?id=32958&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32958&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32958&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32958&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32958&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32958&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32958&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32958&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32958&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32958&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32958&r=mysqlcfg

« previous php.bugs (#78660) next »