bin/72006: floating point formating in non-C locales
keramida at freebsd.org
Wed Sep 22 13:40:25 PDT 2004
The following reply was made to PR bin/72006; it has been noted by GNATS.
From: Giorgos Keramidas <keramida at freebsd.org>
To: Mikhail Teterin <mi at aldan.algebra.com>
Cc: bug-followup at 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 <mi at aldan.algebra.com> 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
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.
More information about the freebsd-bugs