summaryrefslogtreecommitdiff
path: root/lib/feature
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-03-28 19:28:04 -0600
committerKarl Williamson <public@khwilliamson.com>2012-05-22 08:24:17 -0600
commit075b9d7d9a6d4473b240a047655e507c8baa6db3 (patch)
tree0920fbe993831debfd6dd1588a8c7c975114746e /lib/feature
parentc6e8e4a93db00ba34769d5e055b9618f2779e205 (diff)
downloadperl-075b9d7d9a6d4473b240a047655e507c8baa6db3.tar.gz
Experimentally add VT to \s definition
This commit is the minimal necessary to get \s to match the vertical tab. It is being done early in the 5.17 series in order to see what repercussions there might be from doing this. It may well be that we decide that this change will require a 'use feature' to activate. In any event there is significant documentation of the behavior without the VT that this patch does not address at all. Tom Christiansen asked Larry Wall why \s did not include VT, and reported that Larry replied that he did not remember, but had no objections to adding it.
Diffstat (limited to 'lib/feature')
-rw-r--r--lib/feature/unicode_strings.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/feature/unicode_strings.t b/lib/feature/unicode_strings.t
index 7e557b2bc7..8bd536f258 100644
--- a/lib/feature/unicode_strings.t
+++ b/lib/feature/unicode_strings.t
@@ -172,6 +172,7 @@ for my $i ( 0x30 .. 0x39, # 0-9
my @s = (0) x 256;
$s[ord_latin1_to_native 0x09] = 1; # Tab
$s[ord_latin1_to_native 0x0A] = 1; # LF
+$s[ord_latin1_to_native 0x0B] = 1; # VT
$s[ord_latin1_to_native 0x0C] = 1; # FF
$s[ord_latin1_to_native 0x0D] = 1; # CR
$s[ord_latin1_to_native 0x20] = 1; # SPACE