| 1 |
#!/usr/bin/perl -w |
| 2 |
# -*- perl -*- |
| 3 |
|
| 4 |
# |
| 5 |
# $Id: $ |
| 6 |
# Author: Slaven Rezic |
| 7 |
# |
| 8 |
|
| 9 |
use strict; |
| 10 |
|
| 11 |
BEGIN { |
| 12 |
if (!eval q{ |
| 13 |
use Test::More; |
| 14 |
1; |
| 15 |
}) { |
| 16 |
print "1..0 # skip: no Test::More module\n"; |
| 17 |
exit; |
| 18 |
} |
| 19 |
} |
| 20 |
|
| 21 |
use Tk; |
| 22 |
|
| 23 |
if ($] < 5.008005) { |
| 24 |
plan skip_all => "RT #41436 is still not fixed for perls < 5.8.5"; |
| 25 |
exit 0; |
| 26 |
} |
| 27 |
|
| 28 |
plan tests => 2; |
| 29 |
|
| 30 |
my $mw = tkinit; |
| 31 |
{ |
| 32 |
# http://rt.cpan.org/Public/Bug/Display.html?id=41436 |
| 33 |
my $s = "\x90"; |
| 34 |
my $b = $mw->Label->pack; |
| 35 |
$s =~ /(.)/; |
| 36 |
$b->configure(-text, $1); |
| 37 |
pass("RT #41436"); # otherwise it would abort() |
| 38 |
is $b->cget('-text'), "\x90", 'expected value'; |
| 39 |
} |
| 40 |
|
| 41 |
__END__ |