This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output
- From: "myllynen at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Tue, 30 Aug 2011 07:48:09 +0000
- Subject: [Bug libc/13140] New: no-break space as thousands_sep causes inconsistent output
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13140
Bug #: 13140
Summary: no-break space as thousands_sep causes inconsistent
output
Product: glibc
Version: 2.14
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper.fsp@gmail.com
ReportedBy: myllynen@redhat.com
Classification: Unclassified
localhost:~> cat test-grouping.c
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
if (setlocale(LC_ALL, argv[1]) == NULL)
exit(EXIT_FAILURE);
printf("%s:%'9d\n", argv[1], 123456);
exit(EXIT_SUCCESS);
}
localhost:~> gcc test-grouping.c
localhost:~> for l in en_US de_DE fi_FI ; do ./a.out $l.UTF-8 ; done
en_US.UTF-8: 123,456
de_DE.UTF-8: 123.456
fi_FI.UTF-8: 123Â456
I think the expected output would be:
en_US.UTF-8: 123,456
de_DE.UTF-8: 123.456
fi_FI.UTF-8: 123 456
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.