diff options
author | Karl Williamson <khw@cpan.org> | 2018-03-09 12:06:30 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-03-12 10:22:01 -0600 |
commit | 39e69e777b8acb3d8408d75aa0ba12fa6f7db35e (patch) | |
tree | 9af3117f843c6c15e687552c2988c74757c7900b /perl.c | |
parent | 1b6cb30eab88d60350ddd3276647739c0f1ce888 (diff) | |
download | perl-39e69e777b8acb3d8408d75aa0ba12fa6f7db35e.tar.gz |
Don't create locale object unless threaded
PL_C_locale_obj is now only created on threaded builds on systems with
POSIX 2008. On unthreaded builds, we really should continue to use the
old tried and true library calls.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -470,7 +470,7 @@ perl_construct(pTHXx) /* Start with 1 bucket, for DFS. It's unlikely we'll need more. */ HvMAX(PL_registered_mros) = 0; -#ifdef HAS_POSIX_2008_LOCALE +#ifdef USE_POSIX_2008_LOCALE PL_C_locale_obj = newlocale(LC_ALL_MASK, "C", NULL); #endif |