summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-02-15 12:27:23 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-15 18:02:35 -0700
commit20adcf7c80fc3ad8cffa7d52b95a40d87bd781d0 (patch)
tree42b6ebc3be70e41366f78282be3e658182a06468 /pod/perlfunc.pod
parent29050de536086566fb4d4a9db818b8068dd118a0 (diff)
downloadperl-20adcf7c80fc3ad8cffa7d52b95a40d87bd781d0.tar.gz
pp_quote_meta: in locale, quote all UTF-8 Latin1 non-ASCII
Under locale rules, this commit quotes all non-ASCII Latin1 characters in UTF-8 encoded strings. This provides consistency with this function and other functions, such as lc().
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 7cec3bbcc2..8d97258a8d 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4976,6 +4976,12 @@ compatibility for old programs which do not use Unicode. (Note that
C<unicode_strings> is automatically enabled within the scope of a
S<C<use v5.12>> or greater.)
+Within the scope of C<use locale>, all non-ASCII Latin1 code points
+are quoted whether the string is encoded as UTF-8 or not. As mentioned
+above, locale does not affect the quoting of ASCII-range characters.
+This protects against those locales where characters such as C<"|"> are
+considered to be word characters.
+
Otherwise, Perl quotes non-ASCII characters using an adaptation from
Unicode (see L<http://www.unicode.org/reports/tr31/>.)
The only code points that are quoted are those that have any of the