summaryrefslogtreecommitdiff
path: root/t/re/charset.t
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2014-02-04 12:15:14 -0700
committerKarl Williamson <public@khwilliamson.com>2014-02-04 13:30:14 -0700
commit9b0711eec9836d7bd88059aff4786ffef2c41ed6 (patch)
tree4b2f2bc20b87176e214f890488131b54ff54c60d /t/re/charset.t
parentc51dd9764ab2bb731019f57d26a2dce3153d2e70 (diff)
downloadperl-9b0711eec9836d7bd88059aff4786ffef2c41ed6.tar.gz
Don't test locales that are invalid for needed categories
When looking for locales to test, skip ones which aren't defined in every locale category we care about. This was motivated by a Net BSD machine which has a Pig Latin locale, but it is defined only for LC_MESSAGES. This necessitated adding parameters to pass the desired locale(s), and renaming a test function to indicate the current category it is valid for.
Diffstat (limited to 't/re/charset.t')
-rw-r--r--t/re/charset.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/re/charset.t b/t/re/charset.t
index 578964b746..ad2e9526ce 100644
--- a/t/re/charset.t
+++ b/t/re/charset.t
@@ -60,7 +60,7 @@ if (! is_miniperl() && $Config{d_setlocale}) {
skip_adding_C_locale:
# Use a pseudo-modifier 'L' to indicate to use /l with a UTF-8 locale
- $utf8_locale = find_utf8_locale();
+ $utf8_locale = find_utf8_ctype_locale();
push @charsets, 'L' if defined $utf8_locale;
}
}