[perl-File-DesktopEntry] apply patch from MozBug for fixing encoding of utf-8 files 816809, cpan#76843

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 56d74b890c2b142305445081693d7245ba01d216
Author: Marcela Mašláňová <mmaslano@xxxxxxxxxx>
Date:   Fri Apr 27 13:32:44 2012 +0200

    apply patch from MozBug for fixing encoding of utf-8 files 816809, cpan#76843

 File-DesktopEntry-encode.patch |   19 +++++++++++++++++++
 perl-File-DesktopEntry.spec    |    8 +++++++-
 2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/File-DesktopEntry-encode.patch b/File-DesktopEntry-encode.patch
new file mode 100644
index 0000000..8cf08c6
--- /dev/null
+++ b/File-DesktopEntry-encode.patch
@@ -0,0 +1,19 @@
+diff -up File-DesktopEntry-0.04/lib/File/DesktopEntry.pm.old File-DesktopEntry-0.04/lib/File/DesktopEntry.pm
+--- File-DesktopEntry-0.04/lib/File/DesktopEntry.pm.old	2007-11-04 21:34:20.000000000 +0100
++++ File-DesktopEntry-0.04/lib/File/DesktopEntry.pm	2012-04-27 13:28:58.403493320 +0200
+@@ -3,6 +3,7 @@ package File::DesktopEntry;
+ use strict;
+ use vars qw/$AUTOLOAD/;
+ use Carp;
++use Encode;
+ use File::Spec;
+ use File::BaseDir 0.03 qw/data_files data_home/;
+ 
+@@ -333,6 +334,7 @@ sub parse_Exec {
+ 			push @exec, '--icon', $icon if defined($icon);
+ 		}
+ 		else { # expand with word ( e.g. --input=%f )
++			$_ = encode_utf8($_);
+ 			my $bad;
+ 			s/\%(.)/
+ 				($1 eq '%') ? '%'                :
diff --git a/perl-File-DesktopEntry.spec b/perl-File-DesktopEntry.spec
index 2b022aa..96e3909 100644
--- a/perl-File-DesktopEntry.spec
+++ b/perl-File-DesktopEntry.spec
@@ -1,12 +1,14 @@
 Name:           perl-File-DesktopEntry
 Version:        0.04
-Release:        15%{?dist}
+Release:        16%{?dist}
 Summary:        Object to handle .desktop files
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/File-DesktopEntry/
 Source0:        http://www.cpan.org/authors/id/P/PA/PARDUS/File-DesktopEntry/File-DesktopEntry-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+#http://rt.cpan.org/Public/Bug/Display.html?id=76843
+Patch0:         File-DesktopEntry-encode.patch
 BuildArch:      noarch
 BuildRequires:  perl(ExtUtils::MakeMaker) perl(Module::Build)
 BuildRequires:  perl(Test::More) perl(Test::Pod) perl(Test::Pod::Coverage)
@@ -21,6 +23,7 @@ module version 0.9.4 of the specification was used.
 
 %prep
 %setup -q -n File-DesktopEntry-%{version}
+%patch0 -p1
 
 %build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
@@ -49,6 +52,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man3/*
 
 %changelog
+* Fri Apr 27 2012 Marcela Mašláňová <mmaslano@xxxxxxxxxx> - 0.04-15
+- apply patch from MozBug for fixing encoding of utf-8 files 816809, cpan#76843
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.04-15
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/perl-devel



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux