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
|
#!./perl
# Call fold_grind with /l and a UTF-8 locale
use strict;
use warnings;
no warnings 'once';
BEGIN {
chdir 't' if -d 't';
require './test.pl';
set_up_inc('../lib');
require './loc_tools.pl';
}
skip_all "No locales" unless locales_enabled('LC_CTYPE');
# Look for a utf8 locale.
my $utf8_locale = find_utf8_ctype_locale();
skip_all "Couldn't find a UTF-8 locale" unless defined $utf8_locale;
my $current_locale = POSIX::setlocale( &POSIX::LC_CTYPE, $utf8_locale) // "";
skip_all "Couldn't set locale to $utf8_locale"
unless $current_locale eq $utf8_locale;
$::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:
#
|