#32062 [NoF->Bgs]: mbstring fails to match encoding with some locale settings

From: Date: Thu, 16 Feb 2006 23:23:06 +0000
Subject: #32062 [NoF->Bgs]: mbstring fails to match encoding with some locale settings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93363@lists.php.net to get a copy of this message
ID: 32062 Updated by: hirokawa@php.net Reported By: moriyoshi@php.net -Status: No Feedback +Status: Bogus Bug Type: mbstring related Operating System: * PHP Version: 5CVS, 4CVS (2005-02-22) Assigned To: hirokawa New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2005-12-31 01:00:04] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2005-12-23 15:43:27] hirokawa@php.net mbstring (libmbfl) uses strcasecmp() which depends on the locale. If the specified locale is not supported in the system, encoding match fails. It is not the problem of mbstring, but it is the problem of system setting. ------------------------------------------------------------------------ [2005-12-21 23:24:01] sniper@php.net Rui, check this too if you don't mind. :) ------------------------------------------------------------------------ [2005-02-22 16:17:51] moriyoshi@php.net Right, there were typos. The reproduce code should've been <?php setlocale(LC_CTYPE, 'de_DE.ISO-8859-1'); var_dump(mb_convert_encoding('a', 'utf-8', 'iso-8859 -1')); var_dump(mb_convert_encoding('a', 'UTF-8', 'ISO-8859 -1')); setlocale(LC_CTYPE, 'tr_TR.ISO-8859-9'); var_dump(mb_convert_encoding('a', 'utf-8', 'iso-8859 -1')); var_dump(mb_convert_encoding('a', 'UTF-8', 'ISO-8859 -1')); ?> ------------------------------------------------------------------------ [2005-02-22 15:25:03] iliaa@php.net tr_TR == Turkish, and ISO-8859-1 is not a valid character set of that locale, no? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32062 -- Edit this bug report at http://bugs.php.net/?id=32062&edit=1

« previous php.bugs (#93363) next »