summaryrefslogtreecommitdiff
path: root/t/run
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-12-11 22:55:43 -0700
committerKarl Williamson <public@khwilliamson.com>2014-01-04 13:33:05 -0700
commitb34856cbbf2e4df8b63cb86c031aadea8f590219 (patch)
tree696b520ab9d0b58bb6cf6a4bd9b51cfbb5749881 /t/run
parent7cdd8b31c7e76d6cb7e1c568f5c9de585b44b4e7 (diff)
downloadperl-b34856cbbf2e4df8b63cb86c031aadea8f590219.tar.gz
perl.h: Revise another locale setting macro
We generally don't want to switch to the default underlying locale unless we are in the scope of some form of 'use locale'. Prior to this commit, this code did not allow the switch for 'use locale ":not_characters"'.
Diffstat (limited to 't/run')
-rw-r--r--t/run/locale.t14
1 files changed, 13 insertions, 1 deletions
diff --git a/t/run/locale.t b/t/run/locale.t
index 0ecf9a941e..d4419caa39 100644
--- a/t/run/locale.t
+++ b/t/run/locale.t
@@ -113,6 +113,18 @@ EOF
}
{
+ fresh_perl_is(<<'EOF', $difference, {},
+use locale ":not_characters";
+format STDOUT =
+@.#
+4.179
+.
+write;
+EOF
+ "format() looks at LC_NUMERIC with 'use locale \":not_characters\"'");
+ }
+
+ {
fresh_perl_is(<<'EOF', "4.2", {},
format STDOUT =
@.#
@@ -213,4 +225,4 @@ EOF
} # SKIP
-sub last { 11 }
+sub last { 12 }