From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2009-03-29 23:42:50
|
If you have any questions why you received this email, please see the text at the end of this email. Replies to this email are NOT read, please see the text at the end of this email. You can add comments to this bug at: http://bugzilla.gnome.org/show_bug.cgi?id=577241 gnome-perl | Gtk2 | Ver: unspecified Summary: Gtk2::FileChooser get_filename() returning byte string Product: gnome-perl Version: unspecified Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: Gtk2 AssignedTo: gtk...@li... ReportedBy: us...@zi... QAContact: gtk...@li... GNOME version: Unspecified GNOME milestone: Unspecified As noted on the mailing list a little while ago, it looks like Gtk2::FileChooser::get_filename() should return a byte string rather than treat it as utf8. The prototype for gtk_file_chooser_get_filename() has gchar*, but under the heading "Important" in the docs http://library.gnome.org/devel/gtk/unstable/GtkFileChooser.html#GtkFileChooser.description it's described as ready to pass to open() and not suitable to put in a GtkLabel. That seems to be how the code is too. In the foo.pl below clicking on the latin-1 y-diaeresis file in the selection list gets an error Malformed UTF-8 character (overflow at 0x40000036, byte 0x17, after start byte 0xff) in subroutine entry at /usr/lib/perl/5.10/Data/Dumper.pm line 190. and some printfs show it's a raw 0xFF byte. The only concern might be that when you enter a name in the entry box and press return, in that case get_filename returns utf8. Presumably that's a gtk bug. The same applies to the multi-select gtk_file_chooser_get_filenames(). -- See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received this email, why you can't respond via email, how to stop receiving emails (or reduce the number you receive), and how to contact someone if you are having problems with the system. You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=577241. |