diff options
author | Karl Williamson <khw@cpan.org> | 2017-07-25 12:46:00 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2017-08-12 22:53:11 -0600 |
commit | 5acc3fa5267fc7ad812f1bcfa7638acb4fd45c13 (patch) | |
tree | 83a0d820cf768e5c31939b47a825af45d8da632c /perl.c | |
parent | f1d2176bc7ecf5a51b9faeb6e2a2b2e6c900283e (diff) | |
download | perl-5acc3fa5267fc7ad812f1bcfa7638acb4fd45c13.tar.gz |
Initialize locale object even in unthreaded perls
This commit will now initialize the thread-safe C locale object if the
POSIX 2008 functions are available, regardless of whether the perl is
threaded or not. This will allow for a future commit that uses
them, and which is a win on unthreaded builds.
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -456,7 +456,7 @@ perl_construct(pTHXx) PL_WB_invlist = _new_invlist_C_array(_Perl_WB_invlist); PL_LB_invlist = _new_invlist_C_array(_Perl_LB_invlist); PL_Assigned_invlist = _new_invlist_C_array(Assigned_invlist); -#ifdef USE_POSIX_2008_LOCALE +#ifdef HAS_POSIX_2008_LOCALE PL_C_locale_obj = newlocale(LC_ALL_MASK, "C", NULL); #endif |