Re: normalizing filenames and strings



On Fri, 2007-03-30 at 13:39 +1000, Andrew Cowie wrote:
> On Wed, 2007-03-28 at 19:52 -0600, Federico Mena Quintero wrote:
> > g_filename_to_utf8() and g_filename_from_utf8()
> 
> Just when I thought I was beginning to know something, an old hand like
> Frederico goes and describes something that is enormously powerful and
> _very_ well presented in the docs, that I just hadn't come across yet. I
> love hanging out in the GNOME community.
> 
> I just looked through some of the GTK sources and I think that things
> like GtkFileChooser use g_filename_from_utf8() etc automatically. Is
> that true?

Yes. The file chooser returns filenames in filename encoding, whereas it
always gets utf8 from the GtkEntry it has. So, it has to use
g_filename_from_utf8() internally.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an immortal umbrella-wielding paramedic with a robot buddy named Sparky. 
She's a virginal blonde queen of the dead in the wrong place at the wrong 
time. They fight crime! 




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