Re: cvs: php4 /ext/standard/tests/strings strtoupper.phpt
| From: | Moriyoshi Koizumi | Date: | Wed, 23 Oct 2002 21:22:17 +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-15234@lists.php.net to get a copy of this message | ||
Thanks. But can it be rewritten to be skipped unless it is applicable ....?
Moriyoshi
"Ilia A." <ilia@prohost.org> 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.
>
> 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:
> > > 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
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>