diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-09 14:48:27 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-09 14:48:27 +0000 |
commit | f760b1c18c7e150be941a1001c2a063a7aa0386b (patch) | |
tree | a3ddac64f418754d3a5636bea68ce1ab19bee741 /t/pragma | |
parent | 2dbf936037e97c54736a2ff52c71bb5185123636 (diff) | |
download | perl-f760b1c18c7e150be941a1001c2a063a7aa0386b.tar.gz |
Disable only the tests 99 and 166 for UTF-8 locales.
p4raw-id: //depot/perl@7628
Diffstat (limited to 't/pragma')
-rwxr-xr-x | t/pragma/locale.t | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/t/pragma/locale.t b/t/pragma/locale.t index 21f1b2c7ea..0e11c956d6 100755 --- a/t/pragma/locale.t +++ b/t/pragma/locale.t @@ -405,8 +405,7 @@ if (-x "/usr/bin/locale" && open(LOCALES, "/usr/bin/locale -a|")) { setlocale(LC_ALL, "C"); -# UTF-8 and locales simply do not work yet. --jhi -@Locale = grep {!/utf-?8/i} @Locale; +sub utf8locale { $_[0] =~ /utf-?8/i } @Locale = sort @Locale; @@ -498,7 +497,10 @@ foreach $Locale (@Locale) { # Test \w. - { + if (utf8locale($Locale)) { + # Until the polymorphic regexen arrive. + debug "# skipping UTF-8 locale '$Locale'\n"; + } else { my $word = join('', @Neoalpha); $word =~ /^(\w+)$/; @@ -680,7 +682,10 @@ foreach $Locale (@Locale) { # Does lc of an UPPER (if different from the UPPER) match # case-insensitively the UPPER, and does the UPPER match # case-insensitively the lc of the UPPER. And vice versa. - { + if (utf8locale($Locale)) { + # Until the polymorphic regexen arrive. + debug "# skipping UTF-8 locale '$Locale'\n"; + } else { use locale; my @f = (); |