This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/op/override.t: Generalize for non-ASCII platforms
authorKarl Williamson <khw@cpan.org>
Fri, 17 Oct 2014 02:50:29 +0000 (20:50 -0600)
committerKarl Williamson <khw@cpan.org>
Fri, 6 Mar 2015 04:48:27 +0000 (21:48 -0700)
t/op/override.t

index ead2606..ff43571 100644 (file)
@@ -184,7 +184,7 @@ like runperl(prog => 'use constant foo=>1; '
 
 is runperl(prog => 'use constant t=>42; '
                   .'BEGIN { *{q|CORE::GLOBAL::time|} = \&{q|t|};1}'
-                  .'print time, chr 10',
+                  .'print time, chr utf8::unicode_to_native(10)',
           stderr => 1),
    "42\n",
    'keywords respect global constant overrides';