4 unless(grep /blib/, @INC) {
6 unshift @INC, '../lib' if -d '../lib';
13 use charnames ':full';
15 print "not " unless "Here\N{EXCLAMATION MARK}?" eq "Here\041?";
19 use bytes; # UTEST can switch utf8 on
21 print "# \$res=$res \$\@='$@'\nnot "
22 if $res = eval <<'EOE'
23 use charnames ":full";
24 "Here: \N{CYRILLIC SMALL LETTER BE}!";
27 or $@ !~ /above 0xFF/;
29 # print "# \$res=$res \$\@='$@'\n";
31 print "# \$res=$res \$\@='$@'\nnot "
32 if $res = eval <<'EOE'
33 use charnames 'cyrillic';
37 or $@ !~ /CYRILLIC CAPITAL LETTER BE.*above 0xFF/;
41 # If octal representation of unicode char is \0xyzt, then the utf8 is \3xy\2zt
42 $encoded_be = "\320\261";
43 $encoded_alpha = "\316\261";
44 $encoded_bet = "\327\221";
46 use charnames ':full';
49 print "not " unless "\N{CYRILLIC SMALL LETTER BE}" eq $encoded_be;
52 use charnames qw(cyrillic greek :short);
54 print "not " unless "\N{be},\N{alpha},\N{hebrew:bet}"
55 eq "$encoded_be,$encoded_alpha,$encoded_bet";