#42393 [Opn->Asn]: mb_strtoupper is replacing one of the cyrillic symbols with wrong one.

From: Date: Thu, 23 Aug 2007 09:06:53 +0000
Subject: #42393 [Opn->Asn]: mb_strtoupper is replacing one of the cyrillic symbols with wrong one.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-116526@lists.php.net to get a copy of this message
ID: 42393 Updated by: jani@php.net Reported By: ivan dot delchev at softconsultgroup dot com -Status: Open +Status: Assigned -Bug Type: *Unicode Issues +Bug Type: mbstring related Operating System: Windows XP PHP Version: 5.2.3 -Assigned To: +Assigned To: hirokawa New Comment: Assigned to mbstring maintainer. Previous Comments: ------------------------------------------------------------------------ [2007-08-23 08:06:01] ivan dot delchev at softconsultgroup dot com Description: ------------ mb_strtoupper is doind wrong transformation for "å" in cyrillic alphabetic. Whe wrong transformation "å"->"í". Also the function is not UPPER the string! Reproduce code: --------------- // Ensure that the web browser encoding is UTF8 and edit application is UTF8 compatible! $main_string = "Òîâà å òåñò. Îòíîâî Òåñò. Êàêâî áè ñå ïîëó÷èëî ñ òîçè ÒÅÑÒ äà âèäèì!"; var_dump($main_string); var_dump(mb_strtoupper($main_string)); Expected result: ---------------- Dumped result to be the same. And second string to be UPPER! Actual result: -------------- string(120) "Òîâà å òåñò. Îòíîâî Òåñò. Êàêâî áè ñå ïîëó÷èëî ñ òîçè ÒÅÑÒ äà âèäèì!" string(120) "Òîâà ï òïñò. Îòíîâî Òïñò. Êàêâî áè ñï ïîëó÷èëî ñ òîçè ÒÅÑÒ äà âèäèì!" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42393&edit=1

« previous php.bugs (#116526) next »