Subject: | canvas->postscript segfault |
Date: | Mon, 15 Dec 2003 16:10:03 +0000 |
To: | bug-Tk [...] rt.cpan.org |
From: | Petr Pajas <pajas [...] ufal.ms.mff.cuni.cz> |
Hi Nick, All,
I experience segfaults with Tk::Canvas->postscript (804.025beta9) iff
there is at least one text object with non-latin1 characters. I
understand it is not easy to render utf8 in postscript and it would be
perfectly ok with me if the resulting postscript contained something
like '?' in place of any non-latin1 character or even if the
postscript was invalid, but I think it should _not_ segfault. The
testcase below demonstrates the problem.
__TEST_CASE__
#!/usr/bin/perl
use Tk;
$top = MainWindow->new;
$c=$top->Canvas(-width => 100, -height => 100);
$c->createText(10,10,-text => "\x{010D}\x{011B}");
$c->pack;
$b=$top->Button(-text => 'print',
-command => sub { print $c->postscript; $top->destroy })->pack();
MainLoop;
__END__
Thanks,
-- Petr
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu