GNU bug report logs - #10684
guile-2.0.5 test failures on powerpc-darwin8

Previous Next

Package: guile;

Reported by: David Fang <fang <at> csl.cornell.edu>

Date: Tue, 31 Jan 2012 22:53:01 UTC

Severity: normal

Done: ludo <at> gnu.org (Ludovic Courtès)

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10684 in the body.
You can then email your comments to 10684 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Tue, 31 Jan 2012 22:53:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Fang <fang <at> csl.cornell.edu>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Tue, 31 Jan 2012 22:53:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: David Fang <fang <at> csl.cornell.edu>
To: bug-guile <at> gnu.org
Subject: guile-2.0.5 test failures on powerpc-darwin8
Date: Tue, 31 Jan 2012 17:51:54 -0500 (EST)
[Message part 1 (text/plain, inline)]
Using the fink packaging that I maintain for guile:
http://fink.cvs.sf.net/viewvc/fink/experimental/fangism/finkinfo/guile20.info?revision=1.15&view=markup

I get a few test failures on powerpc-darwin8, complete test log:
http://paste.lisp.org/display/127426

FAIL: i18n.test: character mapping: char-locale-upcase Turkish
FAIL: i18n.test: character mapping: char-locale-downcase Turkish
FAIL: i18n.test: string mapping: string-locale-upcase Turkish
FAIL: i18n.test: string mapping: string-locale-downcase Turkish

FAIL: net-db.test: getaddrinfo: wrong service name

ERROR: regexp.test: regexp-quote: regexp/extended: (char 254 #\þ "þ") - 
arguments: ((regular-expression-syntax "make-regexp" "empty 
(sub)expression" #f ("þ")))
FAIL: regexp.test: regexp-quote: regexp/extended: (string "aX" 254 #\þ 
"aþ" "aþ")
FAIL: regexp.test: regexp-quote: regexp/extended: string of all chars

Totals for this test run:
passes:                 34818
failures:               7
unexpected passes:      0
expected failures:      30
unresolved test cases:  37
untested test cases:    1
unsupported test cases: 15
errors:                 1

Most of these failures are not new and have been around a while.
Let me know what other information I can provide about these tests in my 
build environment.

Thanks for guile!

Fang

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Wed, 01 Feb 2012 22:38:01 GMT) Full text and rfc822 format available.

Message #8 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: David Fang <fang <at> csl.cornell.edu>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Wed, 01 Feb 2012 23:36:43 +0100
Hi David,

David Fang <fang <at> csl.cornell.edu> skribis:

> FAIL: i18n.test: character mapping: char-locale-upcase Turkish
> FAIL: i18n.test: character mapping: char-locale-downcase Turkish
> FAIL: i18n.test: string mapping: string-locale-upcase Turkish
> FAIL: i18n.test: string mapping: string-locale-downcase Turkish

This most likely indicates that Darwin 8 has incorrect case mapping data
for the Turkish locale.

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)

> FAIL: net-db.test: getaddrinfo: wrong service name

Can you try this:

  (getaddrinfo "127.0.0.1" "does-not-exist" AI_NUMERICHOST)

> ERROR: regexp.test: regexp-quote: regexp/extended: (char 254 #\þ
> "þ") - 
> arguments: ((regular-expression-syntax "make-regexp" "empty
> (sub)expression" #f ("þ")))

Hm?

> FAIL: regexp.test: regexp-quote: regexp/extended: (string "aX" 254
> #\þ "aþ" "aþ")
> FAIL: regexp.test: regexp-quote: regexp/extended: string of all chars

Can you try:

  (setlocale LC_ALL "en_US.ISO-8859-1") ;; or some other ISO-8859-1 locale
  (let* ((s (string (integer->char 254)))
         (q (regexp-quote s)))
    (regexp-exec (make-regexp q regexp/extended) s))

Thanks,
Ludo’.




Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Wed, 01 Feb 2012 22:57:02 GMT) Full text and rfc822 format available.

Message #11 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: David Fang <fang <at> csl.cornell.edu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Wed, 1 Feb 2012 17:56:09 -0500 (EST)
[Message part 1 (text/plain, inline)]
> Hi David,
>
> David Fang <fang <at> csl.cornell.edu> skribis:
>
>> FAIL: i18n.test: character mapping: char-locale-upcase Turkish
>> FAIL: i18n.test: character mapping: char-locale-downcase Turkish
>> FAIL: i18n.test: string mapping: string-locale-upcase Turkish
>> FAIL: i18n.test: string mapping: string-locale-downcase Turkish
>
> This most likely indicates that Darwin 8 has incorrect case mapping data
> for the Turkish locale.
>
> 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)

fang% guile-2.0
GNU Guile 2.0.5
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
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?

>> 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

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.


>> ERROR: regexp.test: regexp-quote: regexp/extended: (char 254 #\þ
>> "þ") -
>> arguments: ((regular-expression-syntax "make-regexp" "empty
>> (sub)expression" #f ("þ")))
>
> Hm?
>
>> FAIL: regexp.test: regexp-quote: regexp/extended: (string "aX" 254
>> #\þ "aþ" "aþ")
>> FAIL: regexp.test: regexp-quote: regexp/extended: string of all chars
>
> Can you try:
>
>  (setlocale LC_ALL "en_US.ISO-8859-1") ;; or some other ISO-8859-1 locale
>  (let* ((s (string (integer->char 254)))
>         (q (regexp-quote s)))
>    (regexp-exec (make-regexp q regexp/extended) s))

scheme@(guile-user)> (setlocale LC_ALL "en_US.ISO-8859-1")
ERROR: In procedure setlocale:
ERROR: In procedure setlocale: Invalid argument

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

scheme@(guile-user)> (setlocale LC_ALL "en_US.ISO8859-1")
$1 = "en_US.ISO8859-1"
scheme@(guile-user)> (let* ((s (string (integer->char 254))) (q 
(regexp-quote s))) (regexp-exec (make-regexp q regexp/extended) s))
ERROR: In procedure make-regexp:
ERROR: In procedure make-regexp: empty (sub)expression

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.

I have (on darwin8):
fang% locale -a | grep 8859 | grep en
en_AU.ISO8859-1
en_AU.ISO8859-15
en_CA.ISO8859-1
en_CA.ISO8859-15
en_GB.ISO8859-1
en_GB.ISO8859-15
en_NZ.ISO8859-1
en_NZ.ISO8859-15
en_US.ISO8859-1
en_US.ISO8859-15


Fang

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

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Thu, 02 Feb 2012 21:59:02 GMT) Full text and rfc822 format available.

Message #14 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: David Fang <fang <at> csl.cornell.edu>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Thu, 02 Feb 2012 22:58:19 +0100
[Message part 1 (text/plain, inline)]
Hi David,

David Fang <fang <at> csl.cornell.edu> 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.

>>> 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?

[Message part 2 (text/x-patch, inline)]
diff --git a/test-suite/tests/net-db.test b/test-suite/tests/net-db.test
index 89ebb1b..8b14a92 100644
--- a/test-suite/tests/net-db.test
+++ b/test-suite/tests/net-db.test
@@ -102,5 +102,7 @@
             ;; According to POSIX, both error codes are valid (glibc 2.11
             ;; chooses `EAI_SERVICE'; Darwin chooses `EAI_NONAME'.)
             (and (or (= errcode EAI_SERVICE)
-                     (= errcode EAI_NONAME))
+                     (= errcode EAI_NONAME)
+                     (and (defined? 'EAI_NODATA)
+                          (= errcode EAI_NODATA)))
                  (string? (gai-strerror errcode))))))))
[Message part 3 (text/plain, inline)]
> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
>
>
>>> ERROR: regexp.test: regexp-quote: regexp/extended: (char 254 #\þ
>>> "þ") -
>>> arguments: ((regular-expression-syntax "make-regexp" "empty
>>> (sub)expression" #f ("þ")))
>>
>> Hm?
>>
>>> FAIL: regexp.test: regexp-quote: regexp/extended: (string "aX" 254
>>> #\þ "aþ" "aþ")
>>> FAIL: regexp.test: regexp-quote: regexp/extended: string of all chars
>>
>> Can you try:
>>
>>  (setlocale LC_ALL "en_US.ISO-8859-1") ;; or some other ISO-8859-1 locale
>>  (let* ((s (string (integer->char 254)))
>>         (q (regexp-quote s)))
>>    (regexp-exec (make-regexp q regexp/extended) s))

[...]

> scheme@(guile-user)> (setlocale LC_ALL "en_US.ISO8859-1")
> $1 = "en_US.ISO8859-1"
> scheme@(guile-user)> (let* ((s (string (integer->char 254))) (q
> (regexp-quote s))) (regexp-exec (make-regexp q regexp/extended) s))
> ERROR: In procedure make-regexp:
> ERROR: In procedure make-regexp: empty (sub)expression

This looks like a bug of Darwin’s regcomp that’s likely to be solved by
using Gnulib’s ‘regex’ module.  If you don’t mind, I’ll provide you
with a new tarball to test when we’re done with the other issues.

Thanks for your patient investigation!

Ludo’.

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Thu, 02 Feb 2012 22:52:02 GMT) Full text and rfc822 format available.

Message #17 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: David Fang <fang <at> csl.cornell.edu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Thu, 2 Feb 2012 17:50:52 -0500 (EST)
[Message part 1 (text/plain, inline)]
Hi,
	Answers below.

> David Fang <fang <at> csl.cornell.edu> 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/

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Fri, 03 Feb 2012 18:15:02 GMT) Full text and rfc822 format available.

Message #20 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: David Fang <fang <at> csl.cornell.edu>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Fri, 03 Feb 2012 17:02:19 +0100
Hi David,

ludo <at> gnu.org (Ludovic Courtès) skribis:

>>> Can you try:
>>>
>>>  (setlocale LC_ALL "en_US.ISO-8859-1") ;; or some other ISO-8859-1 locale
>>>  (let* ((s (string (integer->char 254)))
>>>         (q (regexp-quote s)))
>>>    (regexp-exec (make-regexp q regexp/extended) s))
>
> [...]
>
>> scheme@(guile-user)> (setlocale LC_ALL "en_US.ISO8859-1")
>> $1 = "en_US.ISO8859-1"
>> scheme@(guile-user)> (let* ((s (string (integer->char 254))) (q
>> (regexp-quote s))) (regexp-exec (make-regexp q regexp/extended) s))
>> ERROR: In procedure make-regexp:
>> ERROR: In procedure make-regexp: empty (sub)expression
>
> This looks like a bug of Darwin’s regcomp that’s likely to be solved by
> using Gnulib’s ‘regex’ module.  If you don’t mind, I’ll provide you
> with a new tarball to test when we’re done with the other issues.

Guile now uses Gnulib’s regex module.  Can you try again with the
tarball from
<http://hydra.nixos.org/job/gnu/guile-2-0/tarball/latest/download-by-type/file/source-dist>?

Thanks,
Ludo’.




Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Sat, 04 Feb 2012 02:00:02 GMT) Full text and rfc822 format available.

Message #23 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: David Fang <fang <at> csl.cornell.edu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Fri, 3 Feb 2012 20:58:12 -0500 (EST)
[Message part 1 (text/plain, inline)]
>> This looks like a bug of Darwinÿÿs regcomp thatÿÿs likely to be solved by
>> using Gnulibÿÿs ÿÿregexÿÿ module.  If you donÿÿt mind, Iÿÿll provide you
>> with a new tarball to test when weÿÿre done with the other issues.
>
> Guile now uses Gnulibÿÿs regex module.  Can you try again with the
> tarball from
> <http://hydra.nixos.org/job/gnu/guile-2-0/tarball/latest/download-by-type/file/source-dist>?

Ludovic,

Updated results look better:
http://paste.lisp.org/display/127426#1

Only one failure:
FAIL: i18n.test: format ~h: English: 12345.5678

Thanks a lot for fixing!

Fang

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Sat, 04 Feb 2012 11:06:02 GMT) Full text and rfc822 format available.

Message #26 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: David Fang <fang <at> csl.cornell.edu>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Sat, 04 Feb 2012 12:04:53 +0100
Hi,

David Fang <fang <at> csl.cornell.edu> skribis:

> Updated results look better:

Good. :-)

> Only one failure:
> FAIL: i18n.test: format ~h: English: 12345.5678

Yes, that’s a new feature, and a new regression.  ;-)

Can you try:

  (use-modules (ice-9 format))
  (setlocale LC_ALL "en_US")
  (format #f "~h" 12345.5678)

and:

  (use-modules (ice-9 i18n))
  (setlocale LC_ALL "en_US")
  (locale-decimal-point)
  (locale-thousands-separator)

Thanks,
Ludo’.




Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Sat, 04 Feb 2012 19:58:01 GMT) Full text and rfc822 format available.

Message #29 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: David Fang <fang <at> csl.cornell.edu>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Sat, 4 Feb 2012 14:56:53 -0500 (EST)
[Message part 1 (text/plain, inline)]
>> FAIL: i18n.test: format ~h: English: 12345.5678
>
> Yes, thatÿÿs a new feature, and a new regression.  ;-)
> Can you try:
>
>  (use-modules (ice-9 format))
>  (setlocale LC_ALL "en_US")
>  (format #f "~h" 12345.5678)

[fangism:guile20-2.0.5.24-e7f7-0/guile-2.0.5.24-e7f7/build] fang% 
meta/guile
GNU Guile 2.0.5.24-e7f7
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (use-modules (ice-9 format))
scheme@(guile-user)> (setlocale LC_ALL "en_US")
$1 = "en_US"
scheme@(guile-user)> (format #f "~" 12345.5678)
;;; <stdin>:3:0: warning: "~": wrong number of `format' arguments: 
expected 0, got 1
$2 = "~"

>  (use-modules (ice-9 i18n))
>  (setlocale LC_ALL "en_US")
>  (locale-decimal-point)
>  (locale-thousands-separator)

[fangism:guile20-2.0.5.24-e7f7-0/guile-2.0.5.24-e7f7/build] fang% 
meta/guile
GNU Guile 2.0.5.24-e7f7
Copyright (C) 1995-2012 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> (use-modules (ice-9 i18n))
scheme@(guile-user)> (setlocale LC_ALL "en_US")
$1 = "en_US"
scheme@(guile-user)> (locale-decimal-point)
$2 = "."
scheme@(guile-user)> (locale-thousands-separator)
$3 = ","



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

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Sat, 04 Feb 2012 20:12:02 GMT) Full text and rfc822 format available.

Message #32 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
To: David Fang <fang <at> csl.cornell.edu>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Sat, 4 Feb 2012 21:10:43 +0100
[Message part 1 (text/plain, inline)]
You forgot h in the format expression

asked for,
   (format #f "~h" 12345.5678)

you wrote,
   (format #f "~" 12345.5678)

/Stefan

On Sat, Feb 4, 2012 at 8:56 PM, David Fang <fang <at> csl.cornell.edu> wrote:

> FAIL: i18n.test: format ~h: English: 12345.5678
>>>
>>
>> Yes, thatÿÿs a new feature, and a new regression.  ;-)
>> Can you try:
>>
>>  (use-modules (ice-9 format))
>>  (setlocale LC_ALL "en_US")
>>  (format #f "~h" 12345.5678)
>>
>
> [fangism:guile20-2.0.5.24-**e7f7-0/guile-2.0.5.24-e7f7/**build] fang%
> meta/guile
> GNU Guile 2.0.5.24-e7f7
> Copyright (C) 1995-2012 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (use-modules (ice-9 format))
> scheme@(guile-user)> (setlocale LC_ALL "en_US")
> $1 = "en_US"
> scheme@(guile-user)> (format #f "~" 12345.5678)
> ;;; <stdin>:3:0: warning: "~": wrong number of `format' arguments:
> expected 0, got 1
> $2 = "~"
>
>   (use-modules (ice-9 i18n))
>>  (setlocale LC_ALL "en_US")
>>  (locale-decimal-point)
>>  (locale-thousands-separator)
>>
>
> [fangism:guile20-2.0.5.24-**e7f7-0/guile-2.0.5.24-e7f7/**build] fang%
> meta/guile
> GNU Guile 2.0.5.24-e7f7
> Copyright (C) 1995-2012 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> (use-modules (ice-9 i18n))
> scheme@(guile-user)> (setlocale LC_ALL "en_US")
> $1 = "en_US"
> scheme@(guile-user)> (locale-decimal-point)
> $2 = "."
> scheme@(guile-user)> (locale-thousands-separator)
> $3 = ","
>
>
>
> --
> David Fang
> http://www.csl.cornell.edu/~**fang/ <http://www.csl.cornell.edu/%7Efang/>
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Sat, 04 Feb 2012 20:50:01 GMT) Full text and rfc822 format available.

Message #35 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: David Fang <fang <at> csl.cornell.edu>
To: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>
Cc: Ludovic Courtès <ludo <at> gnu.org>, 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Sat, 4 Feb 2012 15:49:00 -0500 (EST)
[Message part 1 (text/plain, inline)]
On Sat, 4 Feb 2012, Stefan Israelsson Tampe wrote:

> You forgot h in the format expression
>
> asked for,
>   (format #f "~h" 12345.5678)
>
> you wrote,
>   (format #f "~" 12345.5678)

Oops.

scheme@(guile-user)> (use-modules (ice-9 format))
scheme@(guile-user)> (setlocale LC_ALL "en_US")
$1 = "en_US"
scheme@(guile-user)> (format #f "~h" 12345.5678)
$2 = "12345.5678"


> On Sat, Feb 4, 2012 at 8:56 PM, David Fang <fang <at> csl.cornell.edu> wrote:
>
>> FAIL: i18n.test: format ~h: English: 12345.5678
>>>>
>>>
>>> Yes, thatÿÿs a new feature, and a new regression.  ;-)
>>> Can you try:
>>>
>>>  (use-modules (ice-9 format))
>>>  (setlocale LC_ALL "en_US")
>>>  (format #f "~h" 12345.5678)
>>>
>>
>> [fangism:guile20-2.0.5.24-**e7f7-0/guile-2.0.5.24-e7f7/**build] fang%
>> meta/guile
>> GNU Guile 2.0.5.24-e7f7
>> Copyright (C) 1995-2012 Free Software Foundation, Inc.
>>
>> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
>> This program is free software, and you are welcome to redistribute it
>> under certain conditions; type `,show c' for details.
>>
>> Enter `,help' for help.
>> scheme@(guile-user)> (use-modules (ice-9 format))
>> scheme@(guile-user)> (setlocale LC_ALL "en_US")
>> $1 = "en_US"
>> scheme@(guile-user)> (format #f "~" 12345.5678)
>> ;;; <stdin>:3:0: warning: "~": wrong number of `format' arguments:
>> expected 0, got 1
>> $2 = "~"
>>
>>   (use-modules (ice-9 i18n))
>>>  (setlocale LC_ALL "en_US")
>>>  (locale-decimal-point)
>>>  (locale-thousands-separator)
>>>
>>
>> [fangism:guile20-2.0.5.24-**e7f7-0/guile-2.0.5.24-e7f7/**build] fang%
>> meta/guile
>> GNU Guile 2.0.5.24-e7f7
>> Copyright (C) 1995-2012 Free Software Foundation, Inc.
>>
>> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
>> This program is free software, and you are welcome to redistribute it
>> under certain conditions; type `,show c' for details.
>>
>> Enter `,help' for help.
>> scheme@(guile-user)> (use-modules (ice-9 i18n))
>> scheme@(guile-user)> (setlocale LC_ALL "en_US")
>> $1 = "en_US"
>> scheme@(guile-user)> (locale-decimal-point)
>> $2 = "."
>> scheme@(guile-user)> (locale-thousands-separator)
>> $3 = ","
>>
>>
>>
>> --
>> David Fang
>> http://www.csl.cornell.edu/~**fang/ <http://www.csl.cornell.edu/%7Efang/>
>>
>

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

Information forwarded to bug-guile <at> gnu.org:
bug#10684; Package guile. (Sat, 04 Feb 2012 22:42:02 GMT) Full text and rfc822 format available.

Message #38 received at 10684 <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: David Fang <fang <at> csl.cornell.edu>
Cc: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>, 10684 <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Sat, 04 Feb 2012 23:40:37 +0100
[Message part 1 (text/plain, inline)]
Hello!

I believe commit 13fb25ba0c24a9e7732d2c32dbc882c7d462bce9 (pasted below)
fixes that.  Can you confirm?

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
commit 13fb25ba0c24a9e7732d2c32dbc882c7d462bce9 (HEAD, refs/remotes/origin/stable-2.0, refs/heads/stable-2.0)
Author: Ludovic Courtès <ludo <at> gnu.org>
Date:   Sat Feb 4 23:38:47 2012 +0100

    i18n: Skips ~h `format' tests when digit grouping info is missing.
    
    * test-suite/tests/i18n.test ("format ~h"): Skip tests when
      `locale-digit-grouping' returns '().

	Modified test-suite/tests/i18n.test
diff --git a/test-suite/tests/i18n.test b/test-suite/tests/i18n.test
index 335f450..ef08dd4 100644
--- a/test-suite/tests/i18n.test
+++ b/test-suite/tests/i18n.test
@@ -495,22 +495,30 @@
 
 (with-test-prefix "format ~h"
 
+  ;; Some systems like Darwin lack the `GROUPING' nl_item, and thus
+  ;; `locale-digit-grouping' defaults to '(); skip the tests in that
+  ;; case.
+
   (with-test-prefix "French"
 
     (pass-if "12345.5678"
       (under-french-locale-or-unresolved
        (lambda ()
-         (string=? "12 345,6789"
-                   (format #f "~:h" 12345.6789 %french-locale))))))
+         (if (null? (locale-digit-grouping %french-locale))
+             (throw 'unresolved)
+             (string=? "12 345,6789"
+                       (format #f "~:h" 12345.6789 %french-locale)))))))
 
   (with-test-prefix "English"
 
     (pass-if "12345.5678"
       (under-american-english-locale-or-unresolved
        (lambda ()
-         (string=? "12,345.6789"
-                   (format #f "~:h" 12345.6789
-                           %american-english-locale)))))))
+         (if (null? (locale-digit-grouping %american-english-locale))
+             (throw 'unresolved)
+             (string=? "12,345.6789"
+                       (format #f "~:h" 12345.6789
+                               %american-english-locale))))))))
 
 (with-test-prefix "monetary-amount->locale-string"

Reply sent to ludo <at> gnu.org (Ludovic Courtès):
You have taken responsibility. (Mon, 06 Feb 2012 13:04:02 GMT) Full text and rfc822 format available.

Notification sent to David Fang <fang <at> csl.cornell.edu>:
bug acknowledged by developer. (Mon, 06 Feb 2012 13:04:02 GMT) Full text and rfc822 format available.

Message #43 received at 10684-done <at> debbugs.gnu.org (full text, mbox):

From: ludo <at> gnu.org (Ludovic Courtès)
To: David Fang <fang <at> csl.cornell.edu>
Cc: Stefan Israelsson Tampe <stefan.itampe <at> gmail.com>,
	10684-done <at> debbugs.gnu.org
Subject: Re: bug#10684: guile-2.0.5 test failures on powerpc-darwin8
Date: Mon, 06 Feb 2012 14:02:48 +0100
Hi,

ludo <at> gnu.org (Ludovic Courtès) skribis:

> I believe commit 13fb25ba0c24a9e7732d2c32dbc882c7d462bce9 (pasted below)
> fixes that.  Can you confirm?

I do!  :-)

Hydra tells me it’s OK on Darwin, so closing the bug.

Thanks, David!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 06 Mar 2012 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 159 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.