This is the mail archive of the glibc-bugs@sources.redhat.com 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 libc/210] toupper()/tolower() ignore non-ASCII characters


------- 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.


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