Re: cvs: php4 /ext/standard/tests/strings strtoupper.phpt
| From: | Moriyoshi Koizumi | Date: | Wed, 23 Oct 2002 21:04:40 +0000 |
| Subject: | Re: cvs: php4 /ext/standard/tests/strings strtoupper.phpt | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15228@lists.php.net to get a copy of this message | ||
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:
> msopacua Tue Oct 22 15:39:17 2002 EDT
>
> Added files:
> /php4/ext/standard/tests/strings strtoupper.phpt
> Log:
> 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
>
>
>