On Wed, 31 Aug 2005, Ondrej IvaniÄ wrote:
> Jani Taskinen wrote:
>> On Tue, 30 Aug 2005, Andrei Zmievski wrote:
>>
>>> On Aug 30, 2005, at 10:30 AM, Rasmus Lerdorf wrote:
>>>
>>>> Also, I see the following 6 failed test cases on my Linux box:
>>>>
>>>> -Bug #16069 [ext/iconv/tests/bug16069.phpt]
>>>
>>>
>>> According to the last two comments in that bug report, glibc iconv() does
>>> not support CP932 and this test should be skipped instead of failing. No
>>> idea how to check for that in the test system, so I'll leave it to Jani or
>>> someone else.
>>
>>
>> That test HAS a check for it but it doesn't work. :)
>> I don't know how you should test if you have the support or not so I
>> leave
>> that to someone else.
>
> Is this way acceptable?
>
> $cp932 = (strpos(trim(`iconv -l | grep CP932`), 'CP932') === 0);
No. Even if CP932 is not supported, it's still listed.
--Jani