RE: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd)
| From: | Wez Furlong | Date: | Sun, 20 Oct 2002 22:35:16 +0000 |
| Subject: | RE: [PHP-DEV] [PHP-QA] Logs of failed tests PHP 4.3.0pre1 (fwd) | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89774@lists.php.net to get a copy of this message | ||
I've not been following this thread, but wanted to point out that
there is now mb_convert_case() available in the mbstring extension.
It is locale independent and you can specify the charset of the
string whose case you want to convert.
proto string mb_convert_case(string sourcestring, int mode [, string encoding])
mode is one of:
MB_CASE_UPPER, MB_CASE_LOWER, MB_CASE_TITLE.
with that, I withdraw from this thread,
--Wez.
On 20/10/02, "Mike Robinson" <mike@mgrobinson.com> wrote:
> Michael Mauch wrote:
>
> [snip]
> > >> > "en_US.ISO-8859-1" for example?
> > >>
> > >>Yup, thats what its set to.
> >
> > Hmm. Strange. What does
> >
> > php -r 'echo strtoupper("äöü"),"\n";'
> >
> > yield on your system? And what system is it, btw?
>
>
> It outputs äöü. Stock RedHat-8.0 box, kernel-2.4.18 glibc-2.2.93.
>
>
> > We could use a test like strtopper("äöü")=="ÄÖÜ" to check if
> > the system is able to handle these characters correctly. If
> > not, the test could be skipped.
> >
>
> Adding to ext/xml/tests/007.phpt:
>
> if (strtoupper("äöü")!="ÄÖÜ") {
> print "skip\n";
> }
>
> fixes this for me.
>
> Regards
> Mike Robinson
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php