diff options
author | Karl Williamson <khw@cpan.org> | 2018-11-29 11:53:58 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-11-29 12:02:37 -0700 |
commit | 78f7c09f0b2228c81b0f12f440ec41fa9652c19b (patch) | |
tree | dc602d6f4836a57688c2bee7d5e4ac13c84fc64f /locale.c | |
parent | 4d9252fd87d589cee8bbae74d7bf79cbd4d9fa1b (diff) | |
download | perl-78f7c09f0b2228c81b0f12f440ec41fa9652c19b.tar.gz |
locale.c: Don't use numeric unless LC_NUMERIC
This commit #ifdef's a usage of a variable that isn't valid unless the
system has LC_NUMERIC
Diffstat (limited to 'locale.c')
-rw-r--r-- | locale.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3322,8 +3322,12 @@ Perl_init_i18nl10n(pTHX_ int printwarn) # endif +# ifdef USE_LOCALE_NUMERIC + PL_numeric_radix_sv = newSVpvs("."); +# endif + # if defined(USE_POSIX_2008_LOCALE) && ! defined(HAS_QUERYLOCALE) /* Initialize our records. If we have POSIX 2008, we have LC_ALL */ |