ID: 32062
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: Irrelevant
PHP Version: Irrelevant
New Comment:
tr_TR == Turkish, and ISO-8859-1 is not a valid character set of that
locale, no?
Previous Comments:
------------------------------------------------------------------------
[2005-02-22 06:55:52] [EMAIL PROTECTED]
Description:
------------
mbstring fails to match encoding name against any one of
the supported encodings with some locale settings.
Irrelevant to bug #29955.
Reproduce code:
---------------
<?php
setlocale(LC_CTYPE, 'tr_TR.ISO-8859-1');
var_dump(mb_convert_encoding('abc', 'utf-8', 'iso-8859-1'));
var_dump(mb_convert_encoding('abc', 'UTF-8', 'ISO-8859-1'));
setlocale(LC_CTYPE, 'tr_TR.ISO-8859-9');
var_dump(mb_convert_encoding('abc', 'utf-8', 'iso-8859-1'));
var_dump(mb_convert_encoding('abc', 'UTF-8', 'ISO-8859-1'));
?>
Expected result:
----------------
string(1) "a"
string(1) "a"
string(1) "a"
string(1) "a"
Actual result:
--------------
string(1) "a"
string(1) "a"
Warning: mb_convert_encoding(): Illegal character
encoding specified in %s on line %d
string(1) "a"
string(1) "a"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32062&edit=1