This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 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 on the CC list for the bug, or are watching someone who is.


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