summaryrefslogtreecommitdiffstats
path: root/gurpmi2
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-01 13:39:21 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-02-01 13:39:21 +0000
commit8265e240c71f71e21067bea8fd4ee3b24136ffd4 (patch)
tree4be00ecff17cfd95b2958ce0dc7f05884800292b /gurpmi2
parent42fafbd9102715ce9ea7d43d7fd60a8e9146a96b (diff)
downloadurpmi-8265e240c71f71e21067bea8fd4ee3b24136ffd4.tar
urpmi-8265e240c71f71e21067bea8fd4ee3b24136ffd4.tar.gz
urpmi-8265e240c71f71e21067bea8fd4ee3b24136ffd4.tar.bz2
urpmi-8265e240c71f71e21067bea8fd4ee3b24136ffd4.tar.xz
urpmi-8265e240c71f71e21067bea8fd4ee3b24136ffd4.zip
Convert strings to UTF-8 before display in gurpmi and gurpmi2.
(bug 13296)
Diffstat (limited to 'gurpmi2')
-rwxr-xr-xgurpmi25
1 files changed, 2 insertions, 3 deletions
diff --git a/gurpmi2 b/gurpmi2
index 2af0e23d..aab331d4 100755
--- a/gurpmi2
+++ b/gurpmi2
@@ -11,7 +11,6 @@ BEGIN { #- set up a safe path and environment
}
use gurpmi;
-use urpm::msg qw(N);
use Gtk2;
#- GUI globals
@@ -86,12 +85,12 @@ Gtk2->main;
sub configure_urpm {
my $urpm = new urpm;
$urpm->{fatal} = sub {
- Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'error', 'ok', $_[1])->run;
+ Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'error', 'ok', Locale::gettext::iconv($_[1], undef, 'UTF-8'))->run;
quit;
exit $_[0];
};
$urpm->{error} = sub {
- my $w = Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'warning', 'ok', $_[0]);
+ my $w = Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'warning', 'ok', Locale::gettext::iconv($_[0], undef, 'UTF-8'));
$w->run;
$w->destroy;
};