This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug localedata/2420] de_CH: negative number formatting


------- 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 the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]