This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
[Bug localedata/2420] de_CH: negative number formatting
- From: "thomas dot schwanhaeuser at aps-web dot de" <sourceware-bugzilla at sourceware dot org>
- To: libc-locales at sources dot redhat dot com
- Date: 8 Mar 2006 11:51:33 -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 thomas dot schwanhaeuser at aps-web dot de 2006-03-08 11:51 -------
(In reply to comment #1)
> I cannot reproduce your bug. Can you please tell how you print
> this negative amount?
Here is a PHP script as a demo.
If I run it, I get this as an output:
Pos: 123 456.00
Neg: 123 456.00
Switching to locale de_DE
Pos: 123.456,00
Neg: -123.456,00
Script:
<?PHP
$posnumber=123456; $negnumber=$posnumber*(-1);
setlocale (LC_ALL, 'de_CH');
print "Pos: ".money_format('',$posnumber)."\n";
print "Neg: ".money_format('',$negnumber);
print "\n Switching to locale de_DE \n";
setlocale(LC_ALL, 'de_DE');
print "Pos: ".money_format('',$posnumber)."\n";
print "Neg: ".money_format('',$negnumber);
?>
--
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.