(no subject)



Hi,

I'm learning perl, trying to make some Gtk stuff and faced this problem
(well, dont even know if this is *really* a problem or simply a
/misunderstood/).

This snippet
    
    my $renderer = Gtk2::CellRendererText->new;
    my $column   =
      Gtk2::TreeViewColumn->new_with_attributes( "Código", $renderer,
        text => COLUMN_COD, );
    $column->set_sort_column_id(COLUMN_COD);
    
renders columns headers in wrong codeset. I mean, something like
Código.  Well... you got the idea.

Read perldoc for Glib and found that is internally unicode. So, to catch the
error, I saved the file in iso-8859-1 encoding and it worked very well. So,
doubted from text-editors and executed /file/ on it:

$ file my_perl.pl
my_perl.pl: UTF-8 Unicode text

File don't lies ;)

Finally, anybody figured what I'm missing here?

Glib.pm
# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Glib/Glib.pm,v 1.79
 2005/03/07 20:34:22 kaffeetisch Exp $

Gtk2.pm
# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gtk2/Gtk2.pm,v 1.77
 2005/03/07 21:06:51 kaffeetisch Exp $
our $VERSION = '1.080';

Thanks in advance for any help.

--
rodrigo



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