From f89e8b74c038cb652634805252301455c1c5f69a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 25 Mar 2008 13:43:52 +0000 Subject: (rpm_description) fix displaying garbaged UTF-8 descriptions (eg: cgoban1) instead of displaying "none" --- NEWS | 2 ++ Rpmdrake/formatting.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index ebdca1cf..3f645db7 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,5 @@ +- fix displaying garbaged UTF-8 descriptions (eg: cgoban1) + (instead of displaying "none") - workaround crashing while performing medium name lookup (#38793) Version 4.9.7 - 21 March 2008, Thierry Vignaud diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm index 5637c4c2..0690a09c 100644 --- a/Rpmdrake/formatting.pm +++ b/Rpmdrake/formatting.pm @@ -66,7 +66,7 @@ sub ensure_utf8 { sub rpm_description { my ($description) = @_; - utf8::decode($description); + ensure_utf8($description); my ($t, $tmp); foreach (split "\n", $description) { s/^\s*//; -- cgit v1.2.1