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

Mikhail Teterin mi at aldan.algebra.com
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
>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 at 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:


More information about the freebsd-bugs mailing list