diff options
author | Karl Williamson <khw@cpan.org> | 2021-02-10 07:19:35 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2022-06-16 06:18:39 -0600 |
commit | 4b06b4d0b63d9008bcd89b739dadb572b15513b8 (patch) | |
tree | 62f6ee5e45774171d3aa768f6d1fb83e1c8a4b7a /ext/POSIX | |
parent | 8751a11f7fafc4d656fe8f44ebc8b5233e437153 (diff) | |
download | perl-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 'ext/POSIX')
-rw-r--r-- | ext/POSIX/POSIX.xs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index f6a56e7af8..efb8ab5a34 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -2132,7 +2132,7 @@ localeconv() #else struct lconv *lcbuf; # if defined(USE_ITHREADS) \ - && defined(HAS_POSIX_2008_LOCALE) \ + && defined(USE_POSIX_2008_LOCALE) \ && defined(HAS_LOCALECONV_L) /* Prefer this thread-safe version */ bool do_free = FALSE; locale_t cur = NULL; @@ -2160,7 +2160,7 @@ localeconv() RETVAL = newHV(); sv_2mortal((SV*)RETVAL); # if defined(USE_ITHREADS) \ - && defined(HAS_POSIX_2008_LOCALE) \ + && defined(USE_POSIX_2008_LOCALE) \ && defined(HAS_LOCALECONV_L) cur = uselocale((locale_t) 0); @@ -2241,7 +2241,7 @@ localeconv() } } # if defined(USE_ITHREADS) \ - && defined(HAS_POSIX_2008_LOCALE) \ + && defined(USE_POSIX_2008_LOCALE) \ && defined(HAS_LOCALECONV_L) if (do_free) { freelocale(cur); |