summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-02-10 07:19:35 -0700
committerKarl Williamson <khw@cpan.org>2022-06-16 06:18:39 -0600
commit4b06b4d0b63d9008bcd89b739dadb572b15513b8 (patch)
tree62f6ee5e45774171d3aa768f6d1fb83e1c8a4b7a /perl.c
parent8751a11f7fafc4d656fe8f44ebc8b5233e437153 (diff)
downloadperl-4b06b4d0b63d9008bcd89b739dadb572b15513b8.tar.gz
Regularize HAS_POSIX_2008_LOCALE, USE_POSIX_2008_LOCALE
A platform shouldn't be required to use the Posix 2008 locale handling functions if they are present. Perhaps they are buggy. So, a separate define for using them was introduced, USE_POSIX_2008_LOCALE. But until this commit there were cases that were looking at the underlying availability of the functions, not if the Configuration called for their use.
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index 328bccd40c..f2419f0268 100644
--- a/perl.c
+++ b/perl.c
@@ -1079,7 +1079,7 @@ perl_destruct(pTHXx)
PL_curlocales[i] = NULL;
}
#endif
-#ifdef HAS_POSIX_2008_LOCALE
+#ifdef USE_POSIX_2008_LOCALE
{
/* This also makes sure we aren't using a locale object that gets freed
* below */