summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-07 14:26:42 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-07 14:26:42 +0000
commit00b748f0d89e41e53cd733a2246666a23c155eb2 (patch)
treedf8817c3c6ed09d38c6667f19cf4a7a1c289c47b /lib
parentd45541b37c568dfa7f5049c54dc6172d1f199bee (diff)
downloadperl-00b748f0d89e41e53cd733a2246666a23c155eb2.tar.gz
The (emulated) "no utf8" must be in a BEGIN block
to be effective. p4raw-id: //depot/perl@12888
Diffstat (limited to 'lib')
-rwxr-xr-xlib/CGI/t/html.t9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/CGI/t/html.t b/lib/CGI/t/html.t
index 91523fe55b..761951f6e1 100755
--- a/lib/CGI/t/html.t
+++ b/lib/CGI/t/html.t
@@ -10,10 +10,11 @@ use CGI (':standard','-no_debug','*h3','start_table');
$loaded = 1;
print "ok 1\n";
-if( $] > 5.006 ) {
- # no utf8
- require utf8; # we contain Latin-1
- utf8->unimport;
+BEGIN {
+ if ($] >= 5.006) {
+ require utf8; # we contain Latin-1 in subtest #22,
+ utf8->unimport; # possible "use utf8" must be undone
+ }
}
######################### End of black magic.