Re: Re: cvs: php4 /ext/xml/tests 007.phpt
| From: | Melvyn Sopacua | Date: | Mon, 21 Oct 2002 22:54:59 +0000 |
| Subject: | Re: Re: cvs: php4 /ext/xml/tests 007.phpt | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89852@lists.php.net to get a copy of this message | ||
[ Sorry Derick, missed a whole bunch of CVS mail, because of multiple spaces
in the subject and my overeager filtering :) ]
At 23:58 21-10-2002, Michael Mauch wrote:
Derick Rethans <derick@php.net> wrote: On Mon, 21 Oct 2002, Melvyn Sopacua wrote:While I agree, the only thing that should be needed is LC_CTYPE to ISO-8859-1, which is somewhat managable (ISO8859=1 is the most portable I think?). IIC - Michael is right that locale names are even less consistent, than a lawyer. So you can either setlocale(LC_CTYPE, "some string") then test if it works, maybe try again with "other string", but you can't grab'm all. Apart from that: msopacua@trinity.webteckies.org ~/cvs/php4 $ /php/bin/php -f ext/standard/tests/strings/strtoupper.phpt --TEST-- Test strtoupper on non-ASCII characters --POST-- --GET-- --FILE-- ÀËÏ--EXPECT-- ÄËÏ msopacua@trinity.webteckies.org ~/cvs/php4 $ sapi/cli/php -f ext/standard/tests/strings/strtoupper.phpt --TEST-- Test strtoupper on non-ASCII characters --POST-- --GET-- --FILE-- àëï--EXPECT-- ÄËÏ /php/bin/php is 4.2.3 so something has changed not for the better :( Should I file a bugreport? Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacuacasefoldingmsopacua Mon Oct 21 04:55:07 2002 EDTModified files:/php4/ext/xml/tests 007.phptLog: Skip this when strtoupper doesn't behave as expected, becauseerm, this is just a local problem. Just set the locale to "German" here and it will work just fine I think. IMO this is a hack :) The problem is that there are an awful lot of "German" locales.depends on this.