From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: i18n test fail, guile-2.0.0 Date: Thu, 24 Feb 2011 11:23:41 +0100 Message-ID: <87zkplu3wy.fsf@gnu.org> References: <20110222145917.X8477@fiji.csl.cornell.edu> <20110223170405.N14096@fiji.csl.cornell.edu> <8762sabazo.fsf@gnu.org> <201102240148.04759.bruno@clisp.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298543039 1581 80.91.229.12 (24 Feb 2011 10:23:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 10:23:59 +0000 (UTC) Cc: bug-guile@gnu.org To: Bruno Haible Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 24 11:23:53 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PsYMS-0004ba-UF for guile-bugs@m.gmane.org; Thu, 24 Feb 2011 11:23:53 +0100 Original-Received: from localhost ([127.0.0.1]:48042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsYMS-0004Ls-DF for guile-bugs@m.gmane.org; Thu, 24 Feb 2011 05:23:52 -0500 Original-Received: from [140.186.70.92] (port=36902 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsYML-0004KT-6m for bug-guile@gnu.org; Thu, 24 Feb 2011 05:23:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsYMJ-00014P-TB for bug-guile@gnu.org; Thu, 24 Feb 2011 05:23:44 -0500 Original-Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:39091) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsYMJ-00014E-OU for bug-guile@gnu.org; Thu, 24 Feb 2011 05:23:43 -0500 X-IronPort-AV: E=Sophos;i="4.62,215,1297033200"; d="scan'208";a="76509860" Original-Received: from unknown (HELO nixey) ([193.50.110.208]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 24 Feb 2011 11:23:42 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 6 =?iso-8859-1?Q?Vent=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <201102240148.04759.bruno@clisp.org> (Bruno Haible's message of "Thu, 24 Feb 2011 01:48:02 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.104 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5230 Archived-At: Hi Bruno, Thanks for the quick reply. Bruno Haible writes: > Ludovic Court=C3=A8s wrote: >> > =C2=A0 =C2=A0263:19 =C2=A01 (%number-integer-part "123456" (-1 -1 -1 -= 1 -1 -1 . #) "") >>=20 >> That=E2=80=99s the problem: the locale contains erroneous digit grouping >> information. =C2=A0It should be a circular list of =E2=80=983=E2=80=99, = 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 descript= ion 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=E2=80=99ll submit a patch later today. Thanks, Ludo=E2=80=99.