Try to handle UTF-8 locales.
[p5sagit/p5-mst-13.2.git] / lib / charnames.t
index adc4b3f..c800128 100644 (file)
@@ -8,11 +8,12 @@ BEGIN {
 }
 
 $| = 1;
-print "1..22\n";
+
+print "1..25\n";
 
 use charnames ':full';
 
-print "not " unless "Here\N{EXCLAMATION MARK}?" eq "Here\041?";
+print "not " unless "Here\N{EXCLAMATION MARK}?" eq "Here!?";
 print "ok 1\n";
 
 {
@@ -158,3 +159,16 @@ sub to_bytes {
     print "ok 22\n";
 
 }
+
+print "not " unless "\N{CHARACTER TABULATION}" eq "\t";
+print "ok 23\n";
+
+print "not " unless "\N{ESCAPE}" eq "\e";
+print "ok 24\n";
+
+print "not " unless "\N{NULL}" eq "\c@";
+print "ok 25\n";
+
+# TODO: support 3.1 names, BOM.  Generic aliasing?
+
+