Skip to content

Commit

Permalink
XXX: UCRT mingw is not likely locale-thread safe
Browse files Browse the repository at this point in the history
In order for mingw to be locale-thread safe, it needs UCRT which current
packages don't tend to have.  But this commit adds a XXX -DUCRT
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent 48b25c2 commit b74761c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions makedef.pl
Expand Up @@ -170,8 +170,8 @@ BEGIN
if ($define{USE_LOCALE_THREADS} && ! $define{NO_THREAD_SAFE_LOCALE})
{
if ( $define{USE_POSIX_2008_LOCALE}
|| ($define{WIN32} && ( $cctype !~ /\D/
&& $cctype >= 80)))
|| ($define{WIN32} && ( ($cctype !~ /\D/ && $cctype >= 80))
|| $define{UCRT_USED}))
{
$define{USE_THREAD_SAFE_LOCALE} = 1;
}
Expand All @@ -194,7 +194,9 @@ BEGIN
{
$define{USE_PL_CUR_LC_ALL} = 1;

if ($cctype < 140) {
if ( ($cctype =~ /\D/ && ! $define{UCRT_USED})
|| $cctype < 140)
{
$define{TS_W32_BROKEN_LOCALECONV} = 1;
}
}
Expand Down

0 comments on commit b74761c

Please sign in to comment.