This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/625] lconv::frac_digits != CHAR_MAX in "C" locale
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 29 Dec 2004 11:02:32 -0000
- Subject: [Bug libc/625] lconv::frac_digits != CHAR_MAX in "C" locale
- References: <20041228232254.625.sebor@roguewave.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From jakub at redhat dot com 2004-12-29 11:02 -------
CHAR_MAX on ppc64 is 127 or 255, depending on -fsigned-char or -funsigned-char.
The locale is independent from compiler setting, so I don't think anything
can be done about this (aside from introducing __localeconv_uchar that will be
used for localeconv if __CHAR_UNSIGNED__ and will magically tweak frac_digits).
But that is IMHO too ugly to live with.
I'd say simply make sure to use -fsigned-char if you want strict ISO C99
compliance.
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=625
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.