bigtiny has asked for the wisdom of the Perl Monks concerning the following question:
result:#!/usr/bin/perl use Tk; my $mw = MainWindow->new; $mw->Label( -text => "foo" )->pack; $mw->Button( -text => "bar", -font => "times", -command => sub { exit +} )->pack; MainLoop;
Tcl_GetStringFromObj @ 535 not utf8 SV = PV(0x88074ac) at 0x880f150 REFCNT = 1 FLAGS = (POK,pPOK,UTF8) PV = 0x880ffd8 "font \"\230\377\200\10etica -12 bold\" doesn't exist +"\0Malformed UTF-8 character (overflow at 0x74a63860, byte 0x2d, afte +r start byte 0xff) in subroutine entry at /usr/local/lib/perl/5.8.4/T +k/Widget.pm line 190. [UTF8 "font "\x{63f}\x{0}bold" doesn't exist"] CUR = 39 LEN = 40 SV = PVMG(0x880a848) at 0x880f150 REFCNT = 1 FLAGS = (SMG,POK,pPOK,UTF8) IV = 0 NV = 0 PV = 0x880ffd8 "font \"\230\377\200\10etica -12 bold\" doesn't exist +"\0Malformed UTF-8 character (overflow at 0x74a63860, byte 0x2d, afte +r start byte 0xff) in subroutine entry at /usr/local/lib/perl/5.8.4/T +k/Widget.pm line 190. [UTF8 "font "\x{63f}\x{0}bold" doesn't exist"] CUR = 39 LEN = 40 MAGIC = 0x8810060 MG_VIRTUAL = &PL_vtbl_utf8 MG_TYPE = PERL_MAGIC_utf8(w) MG_LEN = 27 font "??etica -12 bold" doesn't exist at /usr/local/lib/perl/5.8.4/Tk/ +Widget.pm line 190. at ./test.pl line 19 Tk::Widget::new('Tk::Label', 'MainWindow=HASH(0x87f2c8c)', '-t +ext', 'foo') called at /usr/local/lib/perl/5.8.4/Tk/Widget.pm line 25 +6 Tk::Widget::__ANON__('MainWindow=HASH(0x87f2c8c)', '-text', 'f +oo') called at ./test.pl line 19 at ./test.pl line 19
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Weirdness getting perl-tk to work
by GrandFather (Saint) on Sep 20, 2006 at 20:52 UTC | |
|
Re: Weirdness getting perl-tk to work
by Animator (Hermit) on Sep 20, 2006 at 20:58 UTC |