On Sunday 08 April 2007 22:43:16 Michael Sweet wrote:
> Millan wrote:
> > ...
> > One regard though. "Normal" C/C++ functions/methods work well with
> > UTF-8 Unicode encoding only if byte mapping is in question in byte 
> > counting/comparing. However if one for example wants to perform case
> > insensitive comparation between two UTF-8 strings, that is to use
> > "toupper" and "tolower" function, it wont work, unless (UTF-8)
> > locales is used with wide char's (wchar_t) and then return as a UTF-8
> > string with i.e. "wcstombs()" fucntion, to FLTK as char string.
> 
> It doesn't work even in that case, as you need to set the locale to
> one that uses a "normal" notion of upper/lowercase mapping.  In
> addition, Unicode supports 4 (!) separate normalization forms that
> interfere with things, too.

Correct me if I'm wrong, but if one 
calls "setlocale(LC_CTYPE, "en_US.UTF-8")", and since UTF-8 encondig is in 
use, then "normal" portion (I assume you mean on ASCII chars here) is within 
known boundary so it can normally be mapped upper/lower case?

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to