[FreeBSD port]: devel/glib20

Stanislav Sedov stas at FreeBSD.org
Thu Mar 5 06:34:08 PST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 5 Mar 2009 22:15:33 +0900
Alexander Nedotsukov <bland at FreeBSD.org> mentioned:
default?
> >
> The fact it "does not work" may mean anything from bug in GLib to API  
> misuse in the client code.
> And I think I am not brave enough to take responsibility pissing  
> against upstream :-)
> My opinion is for good or bad we have to follow GLib guidelines. Which  
> clearly state this:
> 
> * On Unix, the assumption of GLib and GTK+ by default is that  
> filenames on
> the filesystem are encoded in UTF-8 rather than the encoding of the  
> locale;
> the GTK+ developers consider that having filenames whose interpretation
> depends on the current locale is fundamentally a bad idea.
> 
> If you have filenames encoded in the encoding of your locale, then you
> may want to set the G_FILENAME_ENCODING environment variable:
> 
> G_FILENAME_ENCODING=@locale
> export G_FILENAME_ENCODING
> 
> (Earlier versions of GLib 2.x required a different environment variable
> setting; G_BROKEN_FILENAMES=1 to achieve the same effect; this
> is still supported, but G_FILENAME_ENCODING is preferred.)
> Best integration of GTK+ 2.6 with the environment is achieved by
> using a UTF-8 locale.
> 
> Again. This is not a bug as you state. If you want this to be  
> reconsidered you have to go upstream.
> Note. I am not against this option per-se. Though the default must be  
> leaved as is.
> 

Sure, this certaily doesn't mean a bug in glib, but it means a bug
in glib on FreeBSD, as on FreeBSD one expects apps to work correctly
after setting locale, and filenames are supposed to be encoded in
current locale. As we're supporitng FreeBSD I believe we should follow
our native behaviour and not the upstream one. We're doing exactly
that with most ported applications. That's just what ports system
means. If one wants stock behaviour he always has an option to install an unmodified version.

Just my opinion.

- -- 
Stanislav Sedov
ST4096-RIPE
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAkmv38oACgkQK/VZk+smlYHwaACcDkmdXrIJpnPkDDJ+C/BtjXh6
9W0An0PFx/Asf2fjYnC/LZRfjyoqXXwL
=bMzM
-----END PGP SIGNATURE-----

!DSPAM:49afdf61967001777462353!




More information about the freebsd-gnome mailing list