bin/72006: floating point formating in non-C locales

Giorgos Keramidas keramida at
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>
To: Mikhail Teterin <mi at>
Cc: bug-followup at
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> 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.

More information about the freebsd-bugs mailing list