Hi, I am trying to play with writing a simple gtk2-perl hebrew program. I I took dov grobgelds simple tutorial example program and I modified it trivially. Instead of writing hebrew utf8 text directly into the file, I took a hebrew text file and read in some text using the idiom open(IN,"out"); my $string =<IN>; where the file is a file of 3 lines of bible text that I have in utf8 encoding. The text is easily read using kedit. and i get this error on command line (however the program runs and displays widgets with funny box characters) mlaks TOSAFOT:~/hebrew$ ./perl.pl Gdk-WARNING **: locale not supported by Xlib at /usr/lib/perl5/Gtk2.pm line 59. Gdk-WARNING **: cannot set locale modifiers at /usr/lib/perl5/Gtk2.pm line 59. The program runs and displays the widgets, however the text that is displayed is funny looking- funny looking boxes with numbers in them 00 93. surrounded by square box. I tried the program with either calling BEGIN { $ENV{LC_ALL} = "he_IL.utf8"; } or setting BEGIN { $ENV{LC_ALL} = "he_IL"; } my own environment background is en_US.UTF-8 i also did export LANG=he_IL.utf8;./perl.pl and no improvement i append the sample program and the file i used Thank you very much for your help! Mitchell Laks
Attachment:
out
Description: Text document
Attachment:
perl.pl
Description: Perl program