Re: cvs: php4 /ext/standard/tests/strings strtoupper.phpt
| From: | Melvyn Sopacua | Date: | Wed, 23 Oct 2002 21:18:14 +0000 |
| Subject: | Re: cvs: php4 /ext/standard/tests/strings strtoupper.phpt | ||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15231@lists.php.net to get a copy of this message | ||
Typo indeed.
At 23:07 23-10-2002, Ilia A. wrote:
I will have that test working correctly momentarily. As it stands that test would only work if a locale supporting the used characters is exported.??? I'd like to see that one. Not sure what you mean now.
Ilia On October 23, 2002 05:04 pm, Moriyoshi Koizumi wrote: Hi, The first letter in $chars appears to be a small "a" with a grave accent in my linux box. Is this a typo for a small "a" with a two-dot umlaut sign, or the test is supposed to fail? Moriyoshi "Melvyn Sopacua" <msopacua@idg.nl> wrote:Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacuamsopacua Tue Oct 22 15:39:17 2002 EDTAdded files:/php4/ext/standard/tests/strings strtoupper.phptLog: test for locale support in strtoupper Index: php4/ext/standard/tests/strings/strtoupper.phpt +++ php4/ext/standard/tests/strings/strtoupper.phpt --TEST-- Test strtoupper on non-ASCII characters --POST-- --GET-- --FILE-- <?php $chars = "àé ; setlocale(LC_ALL, "C"); // Not sure which is most portable. BSD's answer to // this one. A small array based on PHP_OS should // cover a majority of systems and makes the problem // of locales transparent for the end user. setlocale(LC_CTYPE, "ISO8859-1"); print(strtoupper($chars)); ?> --EXPECT-- É -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php