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

From: Date: Sun, 10 Aug 2014 07:36:09 +0000
Subject: Req #67815 [Opn]: strtolower/upper should be locale unaware for Turkish I
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187060@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67815&edit=1 ID: 67815 Updated by: fa@php.net Reported by: ongun dot kanat at gmail dot com Summary: strtolower/upper should be locale unaware for Turkish I Status: Open Type: Feature/Change Request Package: Strings related Operating System: Linux PHP Version: 5.5.15 Block user comment: N Private report: N New Comment: Related bugs: https://bugs.php.net/bug.php?id=18556 https://bugs.php.net/bug.php?id=21771 https://bugs.php.net/bug.php?id=18556 https://bugs.php.net/bug.php?id=29955 Maybe there should be a FAQ entry on the wiki? Previous Comments: ------------------------------------------------------------------------ [2014-08-09 18:44:22] ongun dot kanat at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=67815&edit=1

« previous php.bugs (#187060) next »