Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8

From: David Fang <[email-masked]>
Date: Thu, 2 Feb 2012 17:50:52 -0500 (EST)

Hi,
 	Answers below.

> David Fang <[email-masked]> skribis:
>
>>> Can you try this (in a UTF-8 terminal):
>>>
>>>  (use-modules (ice-9 i18n))
>>>  (setlocale LC_ALL "tr_TR.UTF-8")
>>>  (char-locale-upcase #\i)
>
> [...]
>
>> scheme@(guile-user)> (use-modules (ice-9 i18n))
>> scheme@(guile-user)> (setlocale LC_ALL "tr_TR.UTF-8")
>> $1 = "tr_TR.UTF-8"
>> scheme@(guile-user)> (char-locale-upcase #\i)
>> $2 = #\I
>> scheme@(guile-user)>
>>
>> Does that look right?
>
> No, it should be ÿÿ, so it means that this version of Darwin has invalid
> Turkish locale data.
>
> Can show what %host-type is on your system?  Iÿÿll add an exception to
> skip these tests on this platform.

scheme@(guile-user)> %host-type
$1 = "powerpc-apple-darwin8.11.0"

>>>> FAIL: net-db.test: getaddrinfo: wrong service name
>>>
>>> Can you try this:
>>>
>>>  (getaddrinfo "127.0.0.1" "does-not-exist" AI_NUMERICHOST)
>>
>> scheme@(guile-user)> (getaddrinfo "127.0.0.1" "does-not-exist"
>> AI_NUMERICHOST)
>> ERROR: In procedure getaddrinfo:
>> ERROR: In procedure getaddrinfo: No address associated with nodename
>
> Can you apply this patch, run ÿÿ./check-guile net-db.testÿÿ, and report
> back?

Looks better:

[fangism:guile20-2.0.5-0/guile-2.0.5/build] fang% ./check-guile net-db.test
Testing /Volumes/Mercedes2/sw/src/fink.build/guile20-2.0.5-0/guile-2.0.5/build/meta/guile 
... net-db.test
with GUILE_LOAD_PATH=/Volumes/Mercedes2/sw/src/fink.build/guile20-2.0.5-0/guile-2.0.5/test-suite
Running net-db.test

Totals for this test run:
passes:                 6
failures:               0
unexpected passes:      0
expected failures:      0
unresolved test cases:  0
untested test cases:    0
unsupported test cases: 0
errors:                 0

Thanks for the proposed fixes/workarounds!

Fang

-- 
David Fang
http://www.csl.cornell.edu/~fang/