On Sun, 2010-05-09 at 10:49 -0400, Alejandro Imass wrote:
> Don't know if this is actually related to your problem, but from my
> experience GTK or Gnome itself does not support UTF-8 but only single
> byte charsets,
this is utterly wrong. GTK+ *only* uses UTF-8, and that's prominently
displayed
On Sun, 2010-05-09 at 10:49 -0400, Alejandro Imass wrote:
> Don't know if this is actually related to your problem, but from my
> experience GTK or Gnome itself does not support UTF-8 but only single
> byte charsets, so you need to convert to a single-byte encoding that
> is able to be rendered by
On 2010-05-09 15:43, Peter Daum wrote:
> ... you're right - my sample code was only behaving differently because
> of the changes in "pack". I thought I had found a simple test case, but
> as it looks like now, I don't really know yet what change broke my
> program
just for completeness: even in m
Hi Peter,
Don't know if this is actually related to your problem, but from my
experience GTK or Gnome itself does not support UTF-8 but only single
byte charsets, so you need to convert to a single-byte encoding that
is able to be rendered by Gnome. This is what I do for example:
use Encode;
[..
On 2010-05-09 10:59, Marius Feraru wrote:
> Peter Daum wrote:
>> print map( {sprintf("%X ", $_) } unpack("C*", $entry->get_text )), "\n"
> http://perldoc.perl.org/perl5100delta.html#Packing-and-UTF-8-strings
> ;-)
... you're right - my sample code was only behaving differently because
of the cha
Peter Daum wrote:
> print map( {sprintf("%X ", $_) } unpack("C*", $entry->get_text )), "\n"
http://perldoc.perl.org/perl5100delta.html#Packing-and-UTF-8-strings
;-)
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/lis
On 2010-05-09 08:42, Brian Manning wrote:
> Gtk2-Perl is still returning UTF-8 data.
your example does indeed produce the same result on old and new systems,
obviously because "ord" and "split" work on characters, not bytes ...
> Do you have a complete example that shows your problem?
#!/usr/bi
On 2010-05-09 08:41, Emmanuel Rodriguez wrote:
> Gtk2-Perl also returns all strings in UTF-8. If you want to see if a
> string is in UTF-8 or not I suggest that you use Devel::Peek [1]
>
>
> my $button = new Gtk2::Button( "print" );
> my $entry = new Gtk2::Entry;
> $button->signal_
On Sat, May 8, 2010 at 10:42 AM, Peter Daum wrote:
> In the past, all data returned from any Gtk widgets used to be
> UTF8-encoded (I vaguely remember that there were some locale-dependant
> issues; I consistently use "en_US.ISO-8859-1"). Now in the same context
> I get 8-bit data.
Gtk2-Perl is s
On Sat, May 8, 2010 at 7:42 PM, Peter Daum wrote:
>
> Using some little test programs, I verified, that Gtk2 still returns
> everything in utf8, so the change must be somewhere in Gtk2-Perl or in
> Perl. When I run the following code snippet:
>
Gtk2-Perl also returns all strings in UTF-8. If you
In the past, I wrote several Gtk2-Perl tools for system administration.
Fortunately, most of the time I am dealing with ASCII text. On some
occasions however, I need to deal with German text (usually ISO-8859-1).
Already quite some time ago, I upgraded the system on all my machines
(Debian 5.0, Pe
11 matches
Mail list logo