Re: g_filename_to/from_utf8()



On Mon, 2004-02-02 at 15:25, Egon Andersen wrote:
> Sven Neumann wrote:
> > Egon Andersen <post talura dk> writes:
> > 
> >>I've had some problems with g_filename_to/from_utf8().
> > 
> > The encoding of the returned string depends on the encoding of
> > your locale but only if you have the environment variable
> > G_BROKEN_FILENAMES set.
> > 
> 
> Okay, this gave me some info about why the platforms behaves like they do.
> It seems strange that G_BROKEN_FILENAMES is not set on RH7.3, but it is 
> set to 1 on RH9... and apparently it should have been the opposite!
> Do this really mean that I can't rely on the default setup on neither 
> RH7.3 nor RH9 or other Linux distros?
> (I haven't done any manual changes around G_BROKEN_FILENAMES.)
> I thought (hoped?) the idea was to make it easier to make portable 
> applications ;-)

If G_BROKEN_FILENAMES is set, then the encoding if
g_filename_to/from_utf8 is the encoding of your locale. The default
locales on RH9 are UTF-8 locales, but you apparently have a different
setting.
					Owen





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