Eric Brine <ikegami@adaelis.com> writes: > On Mon, Oct 24, 2011 at 4:12 PM, Leon Timmermans <fawaka@gmail.com> wrote: > >> On Mon, Oct 24, 2011 at 10:07 PM, Eric Brine <ikegami@adaelis.com> wrote: >> > Are you saying that non-Windows system can't tell you which encoding it >> is >> > using? >> >> Most unices (pretty much all of them except OS X) do not have an >> inherent encoding at all. Filenames are blobs. >> > > Then how come I can read the file names in file selection dialogs on this > Debian box? Because the toolkit assumes an encoding, usually UTF-8. See <http://www.gtk.org/api/2.6/glib/glib-Character-Set-Conversion.html#g-get-filename-charsets> for how GTK+ determines it. -- ilmari "A disappointingly low fraction of the human race is, at any given time, on fire." - Stig Sandbeck MathisenThread Previous | Thread Next