Subject: standards/18521: printf(3) does not support the ' flag character
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wiz@netbsd.org>
List: netbsd-bugs
Date: 10/03/2002 17:24:39
>Number:         18521
>Category:       standards
>Synopsis:       printf(3) does not support the ' flag character
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    standards-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 03 08:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Klausner
>Release:        NetBSD 1.6D
>Organization:
	
>Environment:
Irrelevant.
>Description:
The printf(3) family does not support the ' flag character, specified
by SUSv2 as:
     '                                                                          
             The integer portion of the result of a decimal conversion (%i,     
             %d, %u, %f, %g or %G) will be formatted with thousands' grouping   
             characters. For other conversions the behaviour is undefined.      
             The non-monetary grouping character is used.                       

Additionally, %F (which does not appear in SUSv2)
should also be supported by this flag character.
>How-To-Repeat:
Write a C program using 
	printf("%'f", 1234567.89);
or take a look at pkgsrc/net/dctc.
>Fix:
Not provided.
Do we even have enough locale support for this yet?
>Release-Note:
>Audit-Trail:
>Unformatted: