#15 Fix uppercasing

v0.9.20
open
Interface (41)
5
2012-10-03
2004-10-30
No

Make sure characters are properly converted when using
'--uppercase' in locales that have uppercase letters.
Currently using 'mbstowcs' and 'wcstombs' to
convert between
UFT-8 and wide chars, and using 'towupper' (instead
of 'toupper') to
convert from lowercase to uppercase.

Discussion

  • Karl Ove Hufthammer

    Logged In: YES
    user_id=59205

    Karl says: "'mbstowcs' and 'wcstombs' unfortunately
    

    depend on on LC_CTYPE, so the encoding they use is locale
    dependent (and not necessarily UTF-8, which our strings
    are in). On the other hand, 'towupper' must be locale-aware
    for correct conversion (e.g. a Turkish uppercase 'i' is
    not an 'I')."

     
  • William Kendrick

    Logged In: YES
    user_id=132410
    Originator: NO

    Currently working to improve this.

     
  • William Kendrick

    See also: attachment on #3363140

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks