aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-10-23 00:08:14 +0000
committerThierry Vignaud <tv@mandriva.org>2007-10-23 00:08:14 +0000
commit48fe24b1e07dc6c52bd302cf93c68204b85175b6 (patch)
tree0c1114dc1cc55337380375e97595dacd63a2212f /Rpmdrake/edit_urpm_sources.pm
parent79d89eff2988fadf29222d7af71cc2c03cb86751 (diff)
downloadrpmdrake-48fe24b1e07dc6c52bd302cf93c68204b85175b6.tar
rpmdrake-48fe24b1e07dc6c52bd302cf93c68204b85175b6.tar.gz
rpmdrake-48fe24b1e07dc6c52bd302cf93c68204b85175b6.tar.bz2
rpmdrake-48fe24b1e07dc6c52bd302cf93c68204b85175b6.tar.xz
rpmdrake-48fe24b1e07dc6c52bd302cf93c68204b85175b6.zip
(mainwindow) handle media with non ASCII characters in names (#34906)
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm
index 8c4f7728..79cf19e2 100644
--- a/Rpmdrake/edit_urpm_sources.pm
+++ b/Rpmdrake/edit_urpm_sources.pm
@@ -1093,10 +1093,12 @@ sub mainwindow() {
}
$list->clear;
foreach (grep { ! $_->{external} } @{$urpm->{media}}) {
+ my $name = $_->{name};
+ c::set_tagged_utf8($name) if utf8::valid($name);
$list->append_set($col{mainw}{is_enabled} => !$_->{ignore},
$col{mainw}{is_update} => ! !$_->{update},
$col{mainw}{type} => get_medium_type($_),
- $col{mainw}{name} => $_->{name});
+ $col{mainw}{name} => $name);
}
$reorder_ok = 1;
};