Re: Bug 24179



On Fri, Jun 14, 2002 at 03:33:49PM +0200, Pablo Saratxaga wrote:
> > 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.
> 
> I don't know if such functions exist in "glib", if not, they should be added.
> and used when needed.

you should just use the C locale for parsing those configuration keywords.
so swithch to C locale and parse and then switch back.

Keld



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