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

Mikhail Teterin mi at
Wed Sep 22 11:20:26 PDT 2004

>Number:         72006
>Category:       bin
>Synopsis:       floating point formating in non-C locales
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 22 18:20:25 GMT 2004
>Originator:     Mikhail Teterin
>Release:        FreeBSD 6.0-CURRENT i386
Virtual Estates, Inc.
System: FreeBSD 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Thu Aug 19 23:55:44 EDT 2004 root at i386

	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.

	setenv LANG uk_UA.KOI8-U
	echo 3.3 | awk '{printf("%g\n", $0)}'
	printf "%g\n" 3.3
	printf: 3.3: not completely converted


More information about the freebsd-bugs mailing list