diff options
author | Karl Williamson <public@khwilliamson.com> | 2012-01-18 09:35:52 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2012-01-21 10:02:55 -0700 |
commit | 66cbab2c91fca8c9abc65a7231a053898208efe3 (patch) | |
tree | cb9e838d32b251f9f52082d29bb7009f074d192f /numeric.c | |
parent | e439cacbc5a93fb9e6c524e31ac41772af51dfa0 (diff) | |
download | perl-66cbab2c91fca8c9abc65a7231a053898208efe3.tar.gz |
Add :not_characters parameter to 'use locale'
This adds the parameter handling, tests, and documentation for this new
feature which allows locale and Unicode to play well with each other.
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -533,7 +533,7 @@ Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send) PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX; - if (PL_numeric_radix_sv && IN_LOCALE) { + if (PL_numeric_radix_sv && IN_SOME_LOCALE_FORM) { STRLEN len; const char * const radix = SvPV(PL_numeric_radix_sv, len); if (*sp + len <= send && memEQ(*sp, radix, len)) { @@ -847,7 +847,7 @@ Perl_my_atof(pTHX_ const char* s) PERL_ARGS_ASSERT_MY_ATOF; - if (PL_numeric_local && IN_LOCALE) { + if (PL_numeric_local && IN_SOME_LOCALE_FORM) { NV y; /* Scan the number twice; once using locale and once without; |