summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-01-18 09:35:52 -0700
committerKarl Williamson <public@khwilliamson.com>2012-01-21 10:02:55 -0700
commit66cbab2c91fca8c9abc65a7231a053898208efe3 (patch)
treecb9e838d32b251f9f52082d29bb7009f074d192f /numeric.c
parente439cacbc5a93fb9e6c524e31ac41772af51dfa0 (diff)
downloadperl-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index fe8837a274..c00dabd433 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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;