This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Be UTF-EBCDIC aware.
authorJarkko Hietaniemi <jhi@iki.fi>
Tue, 27 Nov 2001 01:02:21 +0000 (01:02 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Tue, 27 Nov 2001 01:02:21 +0000 (01:02 +0000)
p4raw-id: //depot/perl@13299

lib/bytes.t

index 05c748c..dda2b87 100644 (file)
@@ -22,7 +22,11 @@ print ord($c)     == 0x100 ? "ok 4\n" : "not ok 4\n";
 
 {
     use bytes;
-    print ord($c) == 0xc4 ? "ok 5\n" : "not ok 5\n";
+    if (ord('A') == 193) {
+       print ord($c) == 0x8c ? "ok 5\n" : "not ok 5\n";
+    } else {
+       print ord($c) == 0xc4 ? "ok 5\n" : "not ok 5\n";
+    }
     print length($c) == 2 ? "ok 6\n" : "not ok 6\n";
 }