The gtk manual doesn't say anything regarding this. And in php-gtk1, the
widget was there and there was no conversion IMO. So converting the
filenames in GtkFileChooser is correct, but not in GtkFileSelection.
Maybe because Gtk1 wasn't utf-8. So it could have to be done there, too.
GTK 1 _was_ UTF-8 internally. We just didn't have a generic way of working around that at the time - but we do now.
Funny thing:
When using get_filename(false) on a filechooser with a non-ascii
filename selected, dumping the filename several times to the console
(~10x) and then scrolling the filechooser, I get a segfault.
That happens only when I don't convert the filename and only after
echoing the filename multiple times.
Bug it?
- Steph