[Debian-hebrew-common] gtk2-perl program attempt

Mitchell Laks mlaks at verizon.net
Sun Nov 6 03:07:44 UTC 2005


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

mlaks at 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
-------------- next part --------------
י ר מ י ה ו
ירמיהו א,א דברי ירמיהו, בן~חלקייהו, מן~הכוהנים אשר בענתות, בארץ בנימין.
ירמיהו א,ב אשר היה דבר~יהוה אליו, בימי יאשייהו בן~אמון מלך יהודה, בשלוש~עשרה שנה, למולכו.
ירמיהו א,ג ויהי, בימי יהויקים בן~יאשייהו מלך יהודה, עד~תום עשתי עשרה שנה, לצדקייהו בן~יאשייהו מלך יהודה--עד~גלות ירושלים, בחודש החמישי.  }פ{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: perl.pl
Type: application/x-perl
Size: 1203 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-hebrew-common/attachments/20051105/1a74ad77/perl.bin


More information about the Debian-hebrew-common mailing list