Skip to content

Commit

Permalink
XXX temporary: undef LC_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
khwilliamson committed May 22, 2023
1 parent 22657c5 commit 76165e1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions makedef.pl
Expand Up @@ -131,13 +131,21 @@ BEGIN
$define{USE_REENTRANT_API} = 1;
}

$define{LC_ALL_MASK} = 1;
$define{LC_ALL} = 1;
if ($define{NO_LC_ALL} ) {
$define{LC_ALL} = 0;
$define{LC_ALL_MASK} = 0;
}

if (! $define{NO_LOCALE}) {
if ( ! $define{NO_POSIX_2008_LOCALE}
&& $define{HAS_NEWLOCALE}
&& $define{HAS_USELOCALE}
&& $define{HAS_DUPLOCALE}
&& $define{HAS_FREELOCALE})
{
&& $define{HAS_FREELOCALE}
&& $define{LC_ALL_MASK}
) {
$define{HAS_POSIX_2008_LOCALE} = 1;
$define{USE_LOCALE} = 1;
}
Expand Down
5 changes: 5 additions & 0 deletions perl.h
Expand Up @@ -1105,6 +1105,11 @@ violations are fatal.

#include "perl_langinfo.h" /* Needed for _NL_LOCALE_NAME */

#ifdef NO_LC_ALL
# undef LC_ALL
# undef LC_ALL_MASK
#endif

/* =========================================================================
* The defines from here to the following ===== line are unfortunately
* duplicated in makedef.pl, and changes here MUST also be made there */
Expand Down

0 comments on commit 76165e1

Please sign in to comment.