develooper Front page | perl.perl5.porters | Postings from September 2000

Re: unicode support and perl [ID 20000901.097]

Thread Previous | Thread Next
From:
Spider Boardman
Date:
September 15, 2000 13:38
Subject:
Re: unicode support and perl [ID 20000901.097]
Message ID:
200009152037.QAA19056@Orb.Nashua.NH.US
Oh, yeah--and here's a test update.

	--s.

--- t/op/append.t.DIST	Sun Aug 20 10:07:47 2000
+++ t/op/append.t	Fri Sep 15 16:32:23 2000
@@ -2,7 +2,7 @@
 
 # $RCSfile: append.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:36 $
 
-print "1..13\n";
+print "1..14\n";
 
 $a = 'ab' . 'c';	# compile time
 $b = 'def';
@@ -53,4 +53,12 @@ if ($_ eq 'abcdef') {print "ok 3\n";} el
     print $t7 =~ /b/ ? "ok 12\n" : "not ok 12\t# $t7\n";
     my $t8 = $u; $t8 = $ub . $t8;
     print $t8 =~ /b/ ? "ok 13\n" : "not ok 13\t# $t8\n";
+}
+
+# test that undef left and right of utf8 results in a valid string
+{
+    my $a;
+    $a .= "\x{1ff}";
+    print $a eq "\x{1ff}" ? "ok 14\n" :
+	"not ok 14\t# (undef.0x1ff) ne (0x1ff)\n";
 }

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About