aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/pkg.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-05-07 21:04:35 +0000
committerThierry Vignaud <tv@mandriva.org>2008-05-07 21:04:35 +0000
commit432e38132e19f59fcd1a46de901d7f70e6563864 (patch)
treef0f318b467498d6a44baa0ec7f1bbba6931ec3f6 /Rpmdrake/pkg.pm
parenta6a676d8d828621249b5d264606fada321f34c5b (diff)
downloadrpmdrake-432e38132e19f59fcd1a46de901d7f70e6563864.tar
rpmdrake-432e38132e19f59fcd1a46de901d7f70e6563864.tar.gz
rpmdrake-432e38132e19f59fcd1a46de901d7f70e6563864.tar.bz2
rpmdrake-432e38132e19f59fcd1a46de901d7f70e6563864.tar.xz
rpmdrake-432e38132e19f59fcd1a46de901d7f70e6563864.zip
(run_rpm) reuse run_program::get_stdout() (needed for next commit)
Diffstat (limited to 'Rpmdrake/pkg.pm')
-rw-r--r--Rpmdrake/pkg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 883113f0..d4e83895 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -66,7 +66,7 @@ sub run_rpm {
foreach (qw(LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT LC_IDENTIFICATION LC_ALL)) {
local $ENV{$_} = $ENV{$_} . '.UTF-8' if $ENV{$_} && $ENV{$_} !~ /UTF-8/;
}
- my @l = map { ensure_utf8($_) } `@_`;
+ my @l = map { ensure_utf8($_) } run_program::get_stdout(@_);
wantarray() ? @l : join('', @l);
}