aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/formatting.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-09-06 13:29:34 +0000
committerThierry Vignaud <tv@mandriva.org>2007-09-06 13:29:34 +0000
commitc6f5a98b7a2be300c14ad648452c3ff1a5fe2073 (patch)
treecbc035fcaaea6f5d6818c6312b5662be44e4df0c /Rpmdrake/formatting.pm
parent622b7b2bacdfc37e4a7351ef37a96c1cdb7f37c8 (diff)
downloadrpmdrake-c6f5a98b7a2be300c14ad648452c3ff1a5fe2073.tar
rpmdrake-c6f5a98b7a2be300c14ad648452c3ff1a5fe2073.tar.gz
rpmdrake-c6f5a98b7a2be300c14ad648452c3ff1a5fe2073.tar.bz2
rpmdrake-c6f5a98b7a2be300c14ad648452c3ff1a5fe2073.tar.xz
rpmdrake-c6f5a98b7a2be300c14ad648452c3ff1a5fe2073.zip
(rpm_summary) do not decode package summary if already in UTF-8 thus
fixing not displaying summaries when already translated in rpm
Diffstat (limited to 'Rpmdrake/formatting.pm')
-rw-r--r--Rpmdrake/formatting.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/formatting.pm b/Rpmdrake/formatting.pm
index 04b6ee20..567855dc 100644
--- a/Rpmdrake/formatting.pm
+++ b/Rpmdrake/formatting.pm
@@ -38,7 +38,7 @@ our @EXPORT = qw(format_field format_header localtime2changelog my_fullname pkg2
sub rpm_summary {
my ($summary) = @_;
- utf8::decode($summary);
+ utf8::decode($summary) if !utf8::is_utf8($summary);
$summary;
}