From 48fe24b1e07dc6c52bd302cf93c68204b85175b6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 23 Oct 2007 00:08:14 +0000 Subject: (mainwindow) handle media with non ASCII characters in names (#34906) --- Rpmdrake/edit_urpm_sources.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Rpmdrake/edit_urpm_sources.pm') 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; }; -- cgit v1.2.1