summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-05-28 14:10:55 +0000
committerThierry Vignaud <tv@mandriva.org>2007-05-28 14:10:55 +0000
commit3c89244cf9477a7f5c2f42f9639045353fced62e (patch)
treebaa8312f37a9703155ba481f1bcc065f83ca6e5b
parent2e6717a71f242051777a22b9fc3cc7ef8cc217c3 (diff)
downloaddrakx-backup-do-not-use-3c89244cf9477a7f5c2f42f9639045353fced62e.tar
drakx-backup-do-not-use-3c89244cf9477a7f5c2f42f9639045353fced62e.tar.gz
drakx-backup-do-not-use-3c89244cf9477a7f5c2f42f9639045353fced62e.tar.bz2
drakx-backup-do-not-use-3c89244cf9477a7f5c2f42f9639045353fced62e.tar.xz
drakx-backup-do-not-use-3c89244cf9477a7f5c2f42f9639045353fced62e.zip
(get_package) fix UTF-8 issue in drakbug (#31067)
-rw-r--r--perl-install/NEWS2
-rwxr-xr-xperl-install/standalone/drakbug2
2 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/NEWS b/perl-install/NEWS
index 0281f29f0..ce330a976 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,4 +1,4 @@
-- fix some UTF8 issue (#31067)
+- fix some UTF8 issue (#31067) (notably drakbug)
- hw support:
o handle snd-cs5530 driver
- progress bar wait_message: ensure it doesn't go crazy when asked to update
diff --git a/perl-install/standalone/drakbug b/perl-install/standalone/drakbug
index 40676fd21..e059c243e 100755
--- a/perl-install/standalone/drakbug
+++ b/perl-install/standalone/drakbug
@@ -165,7 +165,7 @@ sub get_package {
local $ENV{PATH} = "$ENV{PATH}:/sbin:/usr/sbin";
$which_app = chomp_(`which '$executable' 2> /dev/null`);
# deush, rpm can takes some time aka it'll sleeps if something has opened rpm db !
- $rpm_package = $which_app eq "" ? N("Package not installed") : chomp_(`rpm -qf '$which_app' 2>&1`);
+ $rpm_package = $which_app eq "" ? N("Package not installed") : common::to_utf8(chomp_(`rpm -qf '$which_app' 2>&1`));
$packages{$executable} = $rpm_package;
}
$rpm_package;