summaryrefslogtreecommitdiff
path: root/ext/XS-APItest
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-07-26 15:48:28 -0600
committerKarl Williamson <khw@cpan.org>2022-07-26 21:28:14 -0600
commit8290d9dfc2f9409fe4a688c355052cd2bd7ffcdb (patch)
tree33cfb80535b22ba0f64638f02d7581bd10de3e18 /ext/XS-APItest
parent3b71795cc7fe29b5002ff8fb0da75bff32988185 (diff)
downloadperl-8290d9dfc2f9409fe4a688c355052cd2bd7ffcdb.tar.gz
APItest:locale.t: Use proper test for LC_ALL presence
If no LC_ALL, there won't be an LC_ALL() sub. Instead use the string 'LC_ALL" and an explicit check to see if it is there.
Diffstat (limited to 'ext/XS-APItest')
-rw-r--r--ext/XS-APItest/t/locale.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/XS-APItest/t/locale.t b/ext/XS-APItest/t/locale.t
index 2827b3602a..424b9d9150 100644
--- a/ext/XS-APItest/t/locale.t
+++ b/ext/XS-APItest/t/locale.t
@@ -98,7 +98,7 @@ open my $fh, "<", $hdr;
$|=1;
SKIP: {
- skip "No LC_ALL", 1 unless find_locales( &LC_ALL );
+ skip "No LC_ALL", 1 unless locales_enabled('LC_ALL');
use POSIX;
setlocale(LC_ALL, "C");