From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 22 20:40:25 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 0711816A4D3 for ; Wed, 22 Sep 2004 20:40:25 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79CD743D1F for ; Wed, 22 Sep 2004 20:40:24 +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 i8MKeOkx023418 for ; Wed, 22 Sep 2004 20:40:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i8MKeOGu023417; Wed, 22 Sep 2004 20:40:24 GMT (envelope-from gnats) Date: Wed, 22 Sep 2004 20:40:24 GMT Message-Id: <200409222040.i8MKeOGu023417@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: Wed, 22 Sep 2004 20:40:25 -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: Wed, 22 Sep 2004 23:37:36 +0300 On 2004-09-22 14:19, Mikhail Teterin wrote: > At least awk(1) and printf(1) fail to properly parse the > fractional dot in the case of locale, where the separator > is a coma, like in uk_UA.KOI8-U. > > It was always my understanding, that the locale-specific > separator is supposed to be recognized as such in _addition_ > to the C dot. I'm not sure if the dot is supposed to be recognized in addition to the locale-specific fractional separator. The locale settings might specify a different role for the dot character. For instance in Greek locales a dot is used as the ``thousands separator'', i.e. one can write: en_US locale Greek locale 1,000.00 1.000,00 2,000,000.00 2.000.000,00 If the dot character was recognized as a fractional dot in *addition* to the locale-specific character, then the numbers of the right column above would not be valid numbers.