Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 4680
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: pajas [...] ufal.ms.mff.cuni.cz
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 804.025_beta11
Fixed in: (no value)



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
A whole sequence of mess there but it works now - not just avoiding the segfault but actually printing the correct glyphs. Will be fixed in beta12