UTF-8 and filenames

Alexander Larsson alexl at redhat.com
Thu Mar 15 10:51:23 UTC 2007


On Wed, 2007-03-14 at 17:49 -0500, Callum Lerwick wrote:
> On Wed, 2007-03-14 at 18:22 -0400, Simo Sorce wrote:
> > We can and we should standardize at least at the user space level.
> > People expect consistency from a distribution and the tools it ships.
> 
> We've already standardized. UTF-8 is what Nautilus and Gnome/gtk file
> selectors and every other GUI app expects and uses.

Gnome user can change this with the G_FILENAME_ENCODING env var. Set it
to a comma separated list of encodings, with @locale meaning the
encoding of the current locale.

Gnome/Gtk apps wanting to display filenames should use
g_filename_to/from_utf8() so that they properly handle this.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl at redhat.com    alla at lysator.liu.se 
He's a maverick dishevelled Green Beret with a robot buddy named Sparky. She's 
a radical gold-digging widow with a flame-thrower. They fight crime! 




More information about the Fedora-maintainers mailing list