Message-ID: <
20001125204020.A25040@ecnvantage.com>
Debian allows installing /usr/bin/locale without installing
any locales, an error message will ensue.
p4raw-id: //depot/perl@7868
# Other subversive stuff.
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
-if (-x "/usr/bin/locale" && open(LOCALES, "/usr/bin/locale -a|")) {
+if (-x "/usr/bin/locale" && open(LOCALES, "/usr/bin/locale -a 2>/dev/null|")) {
while (<LOCALES>) {
chomp;
trylocale($_);