Req #67815 [NEW]: strtolower/upper should be locale unaware for Turkish I

From: Date: Sat, 09 Aug 2014 18:44:22 +0000
Subject: Req #67815 [NEW]: strtolower/upper should be locale unaware for Turkish I
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187052@lists.php.net to get a copy of this message
From: ongun dot kanat at gmail dot com Operating system: Linux PHP version: 5.5.15 Package: Strings related Bug Type: Feature/Change Request Bug description:strtolower/upper should be locale unaware for Turkish I Description: ------------ There are many applications written that uses strtoupper/strtolower like phpMyAdmin. The Turkish 'I','i' causes errors in these applications since strtolower and strtoupper rejects the 'I'->'i'/'i'->'I' conversation on systems with locale "tr_TR.UTF-8". The function may be locale unaware. Test script: --------------- <?php header("Content-type:text/plain; charset=UTF-8"); echo strtolower("I") . "\n" . strtoupper("i"); Expected result: ---------------- i I Actual result: -------------- I i -- Edit bug report at https://bugs.php.net/bug.php?id=67815&edit=1 --

« previous php.bugs (#187052) next »