Hi,

Whilst trying to display international currency units I found the following 
unexpectedness. In the following code I would expect a label to appear with 
"£10.00 $10.00 €10.00 ¥10.00". Instead of the currency unit I get strange 
characters, as shown in the attached png.

This seems to be happening for any non-US ASCII characters. My default locale 
is en_GB.UTF-8, but I have also tried running it as en_GB. I have tried it on 
both Labels and Treeview items and the problem occurs on both.

Example code:

#!/usr/bin/perl -w

use strict;

use Glib qw(TRUE FALSE);
use Gtk2 '-init';

my $window = Gtk2::Window->new ('toplevel');

my $label = Gtk2::Label->new('£10.00 $10.00 €10.00 ¥10.00');
$window->add ($label);

$window->signal_connect (delete_event => sub {Gtk2->main_quit} );
$window->show_all;
Gtk2->main;

Any help in getting these characters to display correctly would be appreciated.

Thanks,
 Jon



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Attachment: Screenshot-gtktreeview_example.pl-2.png
Description: PNG image

_______________________________________________
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Reply via email to