diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-05-29 07:59:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-05-29 07:59:25 +0000 |
commit | c2799c9577bbb92768162e2464edc50f6163ba8e (patch) | |
tree | ff2e80b3a3f709e897f7e4d4f93a414add245afe | |
parent | f6dfacff6a9ebf4fdd3f77c6180ad24f7eeae3d8 (diff) | |
download | rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar.gz rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar.bz2 rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar.xz rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.zip |
(refresh_packages_list) fix crash due to UTF-8 issue
-rwxr-xr-x | MandrivaUpdate | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate index f32c1fc1..38355a0e 100755 --- a/MandrivaUpdate +++ b/MandrivaUpdate @@ -70,7 +70,9 @@ sub refresh_packages_list { my $i; @{$list->{data}} = map { $data{$_} = $i++; - [ $pkgs->{$_}{selected}, join("\n", "<b>$_</b>", escape_text_for_TextView_markup_format(translate(rpm_summary($pkgs->{$_}{pkg}->summary)))) ]; + my $summary = translate(to_utf8(rpm_summary($pkgs->{$_}{pkg}->summary))); + [ $pkgs->{$_}{selected}, join("\n", "<b>$_</b>", + utf8::valid($summary) ? escape_text_for_TextView_markup_format($summary) : '') ]; } grep { $pkgs->{$_}{pkg} } @requested; gtktext_insert($info, formatAlaTeX(N("The list of updates is empty. This means that either there is |