summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-09-10 14:38:31 -0600
committerKarl Williamson <khw@cpan.org>2022-09-12 12:01:15 -0600
commit6b32b503be79c65dad8e40d6c22eb559555fbb1d (patch)
tree7f8503a222c80e20af3c56e10ecb26d4f61ea9ca /locale.c
parent5d56ab3b3534ebd6be4fa6e897bff1604979f08d (diff)
downloadperl-6b32b503be79c65dad8e40d6c22eb559555fbb1d.tar.gz
Win32 should start new threads in C locale
Prior to this commit, wrong cpp directives did not guarantee this.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/locale.c b/locale.c
index 62de4cf382..51957d22c5 100644
--- a/locale.c
+++ b/locale.c
@@ -6536,12 +6536,11 @@ Perl_thread_locale_init()
/* On Windows, make sure new thread has per-thread locales enabled */
_configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
-# else
+# endif
/* This thread starts off in the C locale */
Perl_setlocale(LC_ALL, "C");
-# endif
#endif
}