This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/210] toupper()/tolower() ignore non-ASCII characters
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 14 Jun 2004 22:09:16 -0000
- Subject: [Bug libc/210] toupper()/tolower() ignore non-ASCII characters
- References: <20040609094941.210.eger@havoc.gtf.org>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From jakub at redhat dot com 2004-06-14 22:09 -------
There are several bugs in your program.
1) toupper/towupper use current locale, if you don't ever call setlocale
nor uselocale, they use C locale
2) UCS-4 encoding is not what you really want on little endian machine,
either use UCS-4LE or, better, mbstowcs/wcstombs and similar functions
3) passing a user controlled string as printf format string is really very
bad idea, you should use fputs or at least printf ("%s", utf8buf).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sources.redhat.com/bugzilla/show_bug.cgi?id=210
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.