Date: Wed, 22 Sep 2004 20:40:24 GMT From: Giorgos Keramidas <keramida@freebsd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/72006: floating point formating in non-C locales Message-ID: <200409222040.i8MKeOGu023417@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/72006; it has been noted by GNATS. From: Giorgos Keramidas <keramida@freebsd.org> To: Mikhail Teterin <mi@aldan.algebra.com> 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 <mi@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 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409222040.i8MKeOGu023417>