From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 23 04:50:39 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF59216A4CE for ; Thu, 23 Sep 2004 04:50:39 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D090543D31 for ; Thu, 23 Sep 2004 04:50:39 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i8N4odq5086365 for ; Thu, 23 Sep 2004 04:50:39 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8N4oddo086362; Thu, 23 Sep 2004 04:50:39 GMT (envelope-from gnats) Date: Thu, 23 Sep 2004 04:50:39 GMT Message-Id: <200409230450.i8N4oddo086362@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Giorgos Keramidas Subject: Re: bin/72006: floating point formating in non-C locales X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Giorgos Keramidas List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 04:50:40 -0000 The following reply was made to PR bin/72006; it has been noted by GNATS. From: Giorgos Keramidas To: Mikhail Teterin Cc: bug-followup@freebsd.org Subject: Re: bin/72006: floating point formating in non-C locales Date: Thu, 23 Sep 2004 07:40:49 +0300 On 2004-09-22 16:51, Mikhail Teterin wrote: > > en_US locale Greek locale > > 1,000.00 1.000,00 > > 2,000,000.00 2.000.000,00 > > These numbers are not parsable one way or the other -- the "thousand > separators" are not, AFAIK, supported at all: > > printf: 2.000.011 > printf: 2.000.011: not completely converted > 2 True, but partial support already exists for producing these numbers with the %'f format of printf: $ env | egrep -e 'LANG|LC_' LC_ALL=en_US.ISO8859-1 LANG=en_US $ printf "%'.02f\n" 12345678 12,345,678.00 So we might want to avoid treating . as an equivalent of the thousands separator, in case someone comes up with a good way to implement any functionality we currently might not have.