Re: Bug 24179



Hi,

Pablo Saratxaga <pablo@mandrakesoft.com> writes:

> The problem is that i/I are not lower/upercase pairs.
> 
> > g_strdown((char *)locale_charset);
> > 
> > Due to the different capitalization rule, in the tr_TR locale, the
> > locale_charset becomes (dotlessi)so-8859-9 instead of iso-8859-9.
> 
> g_strdown() CANNOT be used to lowercase strings supposed to be in ascii
> and in locale independent encoding (like locale names, configuration
> keywords (like "Name=", "Comment=" etc); for that, a different function
> must be used that does NOT use the locale dependent upper/lower fucntions,
> but instead use fixed, locale independent, ascii only, rules based solely
> on the numeric values of the chars.

this is the very reason why g_strdown() is deprecated in favour of
g_ascii_strdown(). All packages should have G_DISABLE_DEPRECATED
in their CFLAGS to catch those problems.


Salut, Sven



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]