Date: Wed, 22 Sep 2004 14:19:01 -0400 (EDT) From: Mikhail Teterin <mi@aldan.algebra.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/72006: floating point formating in non-C locales Message-ID: <200409221819.i8MIJ1l5004274@aldan.algebra.com> Resent-Message-ID: <200409221820.i8MIKPAv008077@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72006 >Category: bin >Synopsis: floating point formating in non-C locales >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Sep 22 18:20:25 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 6.0-CURRENT i386 >Organization: Virtual Estates, Inc. >Environment: System: FreeBSD aldan.algebra.com 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Thu Aug 19 23:55:44 EDT 2004 root@aldan.algebra.com:/home/obj/oh/src/sys/DEBUG i386 >Description: 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. >How-To-Repeat: setenv LANG uk_UA.KOI8-U echo 3.3 | awk '{printf("%g\n", $0)}' 3 printf "%g\n" 3.3 printf: 3.3: not completely converted 3 >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409221819.i8MIJ1l5004274>