|
|
发表于 2005-2-28 13:54:39
|
显示全部楼层
似乎是从gtk-2.4.0开始的:
http://www.gtk.org/gtk-2.4.0-notes.html
* 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=@local
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.4 with the environment is achieved by
using a UTF-8 locale. |
|