summaryrefslogtreecommitdiff
path: root/lib/open.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/open.pm')
-rw-r--r--lib/open.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/open.pm b/lib/open.pm
index 2dc1d2130c..007b66712d 100644
--- a/lib/open.pm
+++ b/lib/open.pm
@@ -27,6 +27,7 @@ sub _get_locale_encoding {
} elsif ($ENV{LANG} =~ /^([^.]+)\.([^.]+)$/) {
($country_language, $locale_encoding) = ($1, $2);
}
+ # LANGUAGE affects only LC_MESSAGES only on glibc
} elsif (not $locale_encoding) {
if ($ENV{LC_ALL} =~ /\butf-?8\b/i ||
$ENV{LANG} =~ /\butf-?8\b/i) {
@@ -250,7 +251,7 @@ pragma.
=back
-If your locale environment variables (LANGUAGE, LC_ALL, LC_CTYPE, LANG)
+If your locale environment variables (LC_ALL, LC_CTYPE, LANG)
contain the strings 'UTF-8' or 'UTF8' (case-insensitive matching),
the default encoding of your STDIN, STDOUT, and STDERR, and of
B<any subsequent file open>, is UTF-8.