bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: i18n test fail, guile-2.0.0


From: Ludovic Courtès
Subject: Re: i18n test fail, guile-2.0.0
Date: Thu, 24 Feb 2011 11:23:41 +0100
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Hi Bruno,

Thanks for the quick reply.

Bruno Haible <address@hidden> writes:

> Ludovic Courtès wrote:
>> >    263:19  1 (%number-integer-part "123456" (-1 -1 -1 -1 -1 -1 . #) "")
>> 
>> That’s the problem: the locale contains erroneous digit grouping
>> information.  It should be a circular list of ‘3’, like this:
>
> You may be misunderstanding the glibc format of the grouping information
> returned by the nl_langinfo function. As you can see
>   - from glibc/stdio-common/printf_fp.c, function __guess_grouping,
>   - from glibc/stdio-common/vfprintf.c, function group_number,
> when the first value in the array is zero or negative or 127, it means
> "no grouping should be done".
>
> The POSIX description of 'grouping' for localeconv() [1] and the description 
> in
> glibc's manual [2] don't mention negative numbers, but yes, sometimes you need
> to look into the source code to understand glibc specific details.

Yes, the description just mentions CHAR_MAX, which seems to be honored
in recent glibcs and Darwins.

I’ll submit a patch later today.

Thanks,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]