#34724 [Opn->Bgs]: Unexpected output
| From: | derick@php.net | Date: | Tue, 04 Oct 2005 07:11:33 +0000 |
| Subject: | #34724 [Opn->Bgs]: Unexpected output | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85974@lists.php.net to get a copy of this message | ||
ID: 34724
Updated by: derick@php.net
Reported By: tv at net4you dot bg
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Windows XP/Apache 2.0.54
PHP Version: 5.1.0RC1
New Comment:
This is not a bug in PHP as we use the underlying OS functions to lower
case strings. If Windows doesn't support it, we can't do anything about
it. Perhaps you can try to set the locale with the setlocale() function
first, but I don't give you much chance here.
Previous Comments:
------------------------------------------------------------------------
[2005-10-04 08:44:10] tv at net4you dot bg
Using the latest snapshot (PHP/5.1.0RC2-dev Server) did not solve my
problem. The result remain unchanged.
------------------------------------------------------------------------
[2005-10-04 08:28:03] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-10-04 08:22:51] tv at net4you dot bg
Description:
------------
i have problem with converting cyrillic string to lower. Sorry you need
to set page encoding to Windows-1251 to see the strings. Here is a
screenshot if you can`t see the screen:
http://www.net4you.bg/temp/tempimg.jpg
Reproduce code:
---------------
<?php
//The string in uc;
$string = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÜÚÞß';
print "Actual uc string: $string<br>";
//Convert the string to lower
print "Result: ".(strtolower($string))."<br>";
//Should produce "àáâãäåæçèéêëìíîïðñòóôõö÷øùüúþÿ"
//Actual output "àáâãäåæçèéêëìíîïðñòóôõö×øùüúþß"
print 'Expected: àáâãäåæçèéêëìíîïðñòóôõö÷øùüúþÿ';
?>
Expected result:
----------------
àáâãäåæçèéêëìíîïðñòóôõö÷øùüúþÿ
Actual result:
--------------
àáâãäåæçèéêëìíîïðñòóôõö×øùüúþß
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34724&edit=1