Re: g_filename_to/from_utf8()

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

 



On Mon, 2004-02-02 at 15:25, Egon Andersen wrote:
> Sven Neumann wrote:
> > Egon Andersen <post@xxxxxxxxx> 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


_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux