summaryrefslogtreecommitdiff
path: root/t/loc_tools.pl
diff options
context:
space:
mode:
Diffstat (limited to 't/loc_tools.pl')
-rw-r--r--t/loc_tools.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/loc_tools.pl b/t/loc_tools.pl
index 50b36d5056..0e4453b314 100644
--- a/t/loc_tools.pl
+++ b/t/loc_tools.pl
@@ -299,7 +299,7 @@ sub find_locales ($;$) {
delete local @ENV{qw(IFS CDPATH ENV BASH_ENV)};
if (-x "/usr/bin/locale"
- && open(LOCALES, "/usr/bin/locale -a 2>/dev/null|"))
+ && open(LOCALES, '-|', "/usr/bin/locale -a 2>/dev/null"))
{
while (<LOCALES>) {
# It seems that /usr/bin/locale steadfastly outputs 8 bit data, which