Date: Fri, 27 Feb 2009 15:38:51 +0900 From: Alexander Nedotsukov <bland@FreeBSD.org> To: Stanislav Sedov <stas@FreeBSD.org> Cc: gnome@FreeBSD.org Subject: Re: [FreeBSD port]: devel/glib20 Message-ID: <3d89f0fc69b803898f61d8c0bedfc79a@mail> In-Reply-To: <20090226171049.89fade07.stas@FreeBSD.org> References: <20090224021026.ba40bdc2.stas@FreeBSD.org> <96ccb314d4001b2d09a4ed33fa20a330@mail> <20090226171049.89fade07.stas@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
Stanislav,
This "nasty" GLib behavior is for a reason. Well at least from the CJK
biased GLib developers point of view :-) The belief is there are reasonable
amount of users who switches between UTF and non-UTF locales often. ATM
GLib tries to validate filename as UTF-8 encoded first and fallback to the
current locale encoding if it is not. This does not look normal to me but
anyway.
So if G_FILENAME_ENCODING thing is not broken by itself I suggest you to
add this to your local .login_conf or do the same in the system wide
/etc/login.conf if you like:
me:\
:setenv=G_FILENAME_ENCODING=@locale: \
...
And we may want to add this to the FAQ.
All the best,
Alexander.
On Thu, 26 Feb 2009 17:10:49 +0300, Stanislav Sedov <stas@freebsd.org>
wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thu, 26 Feb 2009 12:15:37 +0900
> Alexander Nedotsukov <bland@FreeBSD.org> mentioned:
>
>>
>> Did you say that this does not work as advertised?
>>
>> http://library.gnome.org/devel/glib/unstable/glib-running.html
>>
>
> I believe this should work "by default". Not after setting some weird
> 3rd party environment variables. And this is what users expect.
> Furthermore, this is how major Linux distributions behave.
>
> That is especially true for FreeBSD, where most users don't use utf
> locales and hurt by this problem. Doesn't totally broken filenames
> look like a bug for you? In FreeBSD it's stated that everything should
> work after setting LANG, why glib apps should be an exception from this
> rule?
>
> - --
> Stanislav Sedov
> ST4096-RIPE
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAkmmou0ACgkQK/VZk+smlYHhnwCeN09FXJ9Y90XVrZWgLoMuZ3WL
> EkQAnjk4y2p4X0vamQySmAHoDTvNCskQ
> =9cWp
> -----END PGP SIGNATURE-----
>
> !DSPAM:49a6a2e5967006502419967!
>
>
> _______________________________________________
> freebsd-gnome@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-gnome
> To unsubscribe, send any mail to "freebsd-gnome-unsubscribe@freebsd.org"
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3d89f0fc69b803898f61d8c0bedfc79a>
