summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-10-20 21:40:36 -0600
committerKarl Williamson <khw@cpan.org>2015-11-20 10:53:26 -0700
commit629eeaee7130c432818fc6c21e37be80dc55dd48 (patch)
treeb4300f5a8ea45955ba154494428e9397bb67f0fc /lib
parent467a667a478081da892b51bc98585434c22c3069 (diff)
downloadperl-629eeaee7130c432818fc6c21e37be80dc55dd48.tar.gz
Various tests: use centralized locale detection
These tests were using individually defined heuristics to decide whether to do locale testing or not. However t/loc_tools.pl provides functions that are more reliable and complete for determining this than the hand-rolled ones in these tests.
Diffstat (limited to 'lib')
-rw-r--r--lib/unicore/mktables9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/unicore/mktables b/lib/unicore/mktables
index 5711791f1d..3105e9a46d 100644
--- a/lib/unicore/mktables
+++ b/lib/unicore/mktables
@@ -19544,7 +19544,6 @@ utf8::upgrade($breakable_utf8);
my $nobreak_utf8 = my $nobreak = chr(utf8::unicode_to_native(0xD7));
utf8::upgrade($nobreak_utf8);
-use Config;
my $utf8_locale;
chdir 't' if -d 't';
eval { require "./loc_tools.pl" };
@@ -19640,13 +19639,7 @@ sub _test_break($$) {
if ($modifier =~ / ^ l (.*) /x) {
my $locale = $1;
$display_locale = "(locale = $locale)";
- use Config;
- if (defined $Config{d_setlocale}) {
- eval { require POSIX; import POSIX 'locale_h'; };
- if (defined &POSIX::LC_CTYPE) {
- POSIX::setlocale(&POSIX::LC_CTYPE, $locale);
- }
- }
+ POSIX::setlocale(&POSIX::LC_CTYPE, $locale);
$modifier = 'l';
}