source: trunk/essentials/dev-lang/perl/lib/utf8.t@ 3314

Last change on this file since 3314 was 3181, checked in by bird, 19 years ago

perl 5.8.8

File size: 15.0 KB
Line 
1#!./perl
2
3my $has_perlio;
4
5BEGIN {
6 chdir 't' if -d 't';
7 @INC = '../lib';
8 require './test.pl';
9 unless ($has_perlio = find PerlIO::Layer 'perlio') {
10 print <<EOF;
11# Since you don't have perlio you might get failures with UTF-8 locales.
12EOF
13 }
14}
15
16no utf8; # Ironic, no?
17
18# NOTE!
19#
20# Think carefully before adding tests here. In general this should be
21# used only for about three categories of tests:
22#
23# (1) tests that absolutely require 'use utf8', and since that in general
24# shouldn't be needed as the utf8 is being obsoleted, this should
25# have rather few tests. If you want to test Unicode and regexes,
26# you probably want to go to op/regexp or op/pat; if you want to test
27# split, go to op/split; pack, op/pack; appending or joining,
28# op/append or op/join, and so forth
29#
30# (2) tests that have to do with Unicode tokenizing (though it's likely
31# that all the other Unicode tests sprinkled around the t/**/*.t are
32# going to catch that)
33#
34# (3) complicated tests that simultaneously stress so many Unicode features
35# that deciding into which other test script the tests should go to
36# is hard -- maybe consider breaking up the complicated test