From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bruno Haible Newsgroups: gmane.lisp.guile.bugs Subject: Re: i18n test fail, guile-2.0.0 Date: Thu, 24 Feb 2011 01:48:02 +0100 Message-ID: <201102240148.04759.bruno@clisp.org> References: <20110222145917.X8477@fiji.csl.cornell.edu> <20110223170405.N14096@fiji.csl.cornell.edu> <8762sabazo.fsf@gnu.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 1298508510 16057 80.91.229.12 (24 Feb 2011 00:48:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 24 Feb 2011 00:48:30 +0000 (UTC) Cc: bug-guile@gnu.org To: Ludovic =?utf-8?q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 24 01:48:25 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 1PsPNY-00014s-SC for guile-bugs@m.gmane.org; Thu, 24 Feb 2011 01:48:25 +0100 Original-Received: from localhost ([127.0.0.1]:46464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsPNY-0003Ni-B2 for guile-bugs@m.gmane.org; Wed, 23 Feb 2011 19:48:24 -0500 Original-Received: from [140.186.70.92] (port=58366 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsPNT-0003NZ-NI for bug-guile@gnu.org; Wed, 23 Feb 2011 19:48:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsPNQ-0004Rh-Vm for bug-guile@gnu.org; Wed, 23 Feb 2011 19:48:19 -0500 Original-Received: from mo-p00-ob.rzone.de ([81.169.146.161]:26597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsPNO-0004Qv-OZ; Wed, 23 Feb 2011 19:48:15 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1298508492; l=1148; s=domk; d=haible.de; h=Content-Transfer-Encoding:Content-Type:MIME-Version:In-Reply-To: References:Cc:Date:Subject:To:From:X-RZG-CLASS-ID:X-RZG-AUTH; bh=IwECrS79coCF2MxNV//y2De8YnI=; b=GrqD0jsGG1Cxka44ejb/HXY2wCVDuv8F6jMzaLWtpmrm4aF206AKi0j9WM1Cs26jXDl /vvcZ90KZdAzGlIerB9fKrm5n9xTVn4mqFtBaQyHRdFOCa/2Y/e3ZfcCPMEUvAlpXaArj mhTqD06hjyH9cTcozY475QcJ53HcUYkRBJw= X-RZG-AUTH: :Ln4Re0+Ic/6oZXR1YgKryK8brksyK8dozXDwHXjf9hj/zDJRaPAl/HgmxFw= X-RZG-CLASS-ID: mo00 Original-Received: from linuix.haible.de (dslb-088-069-163-162.pools.arcor-ip.net [88.69.163.162]) by post.strato.de (fruni mo47) (RZmta 25.5) with ESMTPA id K029ban1NLIRmQ ; Thu, 24 Feb 2011 01:48:05 +0100 (MET) User-Agent: KMail/1.9.9 In-Reply-To: <8762sabazo.fsf@gnu.org> Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 81.169.146.161 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:5229 Archived-At: 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, l= ike 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 descriptio= n in glibc's manual [2] don't mention negative numbers, but yes, sometimes you n= eed to look into the source code to understand glibc specific details. Bruno [1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/localeconv.ht= ml [2] http://www.gnu.org/software/libc/manual/html_node/General-Numeric.html =2D-=20 In memoriam Henri Salmide