From 4b06b4d0b63d9008bcd89b739dadb572b15513b8 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 10 Feb 2021 07:19:35 -0700 Subject: 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. --- perl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl.c') 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 */ -- cgit v1.2.1