blob: c5cfc7b32fd059988bea8e0cad3399d54f1df43e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#!./perl
use strict;
use warnings;
no warnings 'once';
BEGIN {
chdir 't' if -d 't';
require './test.pl';
require './loc_tools.pl';
set_up_inc('../lib');
}
skip_all "No locales" unless locales_enabled('LC_CTYPE');
my $current_locale = POSIX::setlocale( &POSIX::LC_CTYPE, "C") // "";
skip_all "Couldn't set locale to C" unless $current_locale eq 'C';
use locale;
# Some implementations don't have the 128-255 range characters all
# mean nothing under the C locale (an example being VMS). This is
# legal, but since we don't know what the right answers should be,
# skip the locale tests in that situation.
for my $i (128 .. 255) {
my $char = chr(utf8::unicode_to_native($i));
skip_all "C locale doesn't behave as expected" if uc($char) ne $char
|| lc($char) ne $char;
}
$::TEST_CHUNK = 'l';
do './re/fold_grind.pl';
print STDERR "$@\n" if $@;
print STDERR "$!\n" if $!;
1;
#
# ex: set ts=8 sts=4 sw=4 et:
#
|