[Gtk2-perl-bugs] [Bug 577241] New: Gtk2::FileChooser get_filename() returning byte string

View: New views
3 Messages — Rating Filter:   Alert me  

[Gtk2-perl-bugs] [Bug 577241] New: Gtk2::FileChooser get_filename() returning byte string

by Bugzilla from bugzilla-daemon@bugzilla.gnome.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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: gtk2-perl-bugs@...
        ReportedBy: user42@...
         QAContact: gtk2-perl-bugs@...
     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.

------------------------------------------------------------------------------
_______________________________________________
Gtk2-perl-bugs mailing list
Gtk2-perl-bugs@...
https://lists.sourceforge.net/lists/listinfo/gtk2-perl-bugs

[Gtk2-perl-bugs] [Bug 577241] Gtk2::FileChooser get_filename() returning byte string

by Bugzilla from bugzilla-daemon@bugzilla.gnome.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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




------- Comment #1 from Kevin Ryde  2009-03-29 23:44 UTC -------
Created an attachment (id=131653)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=131653&action=view)
failing program


--
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.

------------------------------------------------------------------------------
_______________________________________________
Gtk2-perl-bugs mailing list
Gtk2-perl-bugs@...
https://lists.sourceforge.net/lists/listinfo/gtk2-perl-bugs

[Gtk2-perl-bugs] [Bug 577241] Gtk2::FileChooser get_filename() returning byte string

by Bugzilla from bugzilla-daemon@bugzilla.gnome.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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




------- Comment #2 from Kevin Ryde  2009-03-29 23:46 UTC -------
Created an attachment (id=131654)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=131654&action=view)
char instead of gchar


--
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.

------------------------------------------------------------------------------
_______________________________________________
Gtk2-perl-bugs mailing list
Gtk2-perl-bugs@...
https://lists.sourceforge.net/lists/listinfo/gtk2-perl-bugs