3 # $Id: utf8.t,v 1.0.1.2 2000/09/28 21:44:17 ram Exp $
5 # Copyright (c) 1995-2000, Raphael Manfredi
7 # You may redistribute only under the same terms as Perl 5, as specified
8 # in the README file that comes with the distribution.
11 # Revision 1.0.1.2 2000/09/28 21:44:17 ram
12 # patch2: fixed stupid typo
14 # Revision 1.0.1.1 2000/09/17 16:48:12 ram
21 print "1..0 # Skip: no utf8 support\n";
29 require Config; import Config;
30 if ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bStorable\b/) {
31 print "1..0 # Skip: Storable was not built\n";
34 require 'lib/st-dump.pl';
40 use Storable qw(thaw freeze);
45 ok 1, $x eq ${thaw freeze \$x};
48 $x = join '', map {chr $_} (0..1023);
49 ok 2, $x eq ${thaw freeze \$x};
51 # Char in the range 127-255 (probably) in utf8
52 $x = chr (175) . chr (256);
54 ok 3, $x eq ${thaw freeze \$x};