This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug localedata/2420] de_CH: negative number formatting
- From: "barbier at linuxfr dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Mar 2006 06:54:42 -0000
- Subject: [Bug localedata/2420] de_CH: negative number formatting
- References: <20060306045821.2420.thomas.schwanhaeuser@aps-web.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From barbier at linuxfr dot org 2006-03-10 06:54 -------
After more explanations from Thomas, I can confirm that there is indeed a bug
with strfmon and the ! modifier. Here is a test case.
Expected result: Fr.- 12.34 - 12.34
Actual result: Fr.- 12.34 12.34
#include <monetary.h>
#include <locale.h>
#include <stdio.h>
int main()
{
char buf[500];
setlocale(LC_ALL, "de_CH.UTF-8");
strfmon(buf, sizeof(buf), "%n %!n\n", -12.34, -12.34);
printf("%s", buf);
return 0;
}
--
http://sourceware.org/bugzilla/show_bug.cgi?id=2420
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.