Re: Test results
| From: | Moriyoshi Koizumi | Date: | Tue, 29 Oct 2002 13:55:22 +0000 |
| Subject: | Re: Test results | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-6468@lists.php.net to get a copy of this message | ||
--snip
> When I added the FreeBSD locale yesterday, I made a typo (before commit).
> The skipif section was correct, but I typed ISO88x9 or sumfin, in the
> test itself.
> Therefore setlocale failed in the test - not the skipif section and I
> got the output as below.
> That's why I recognized it. If the skipif and testcode are the same,
> I have no plausible explanation, other than you can't setlocale() twice? :)
I heard (but I'm not sure) that some version of glibc has a bug
in locale handling. I suspect that setlocale() of that version
never returns a null value even if the specified locale name
is invalid. In this case, SKIPIF section should be updated
like below:
--SKIPIF--
<?php
setlocale(LC_CTYPE,'fr_FR.ISO8859-15@euro');
if (setlocale(LC_CTYPE,0) != 'fr_FR.ISO8859-1') {
die("skip setlocale failed.");
}
?>
And if the test still fails, I can't give it a reasonable
explanation any more :)
Moriyoshi