[perl-Net-IDN-Nameprep: 6/10] Make sure all files are UTF-8 encoded
Mathieu Bridon
bochecha at fedoraproject.org
Thu Feb 7 02:57:40 UTC 2013
commit f2093ad4d44ee167f92e24bd398d717d4c0a9fe8
Author: Mathieu Bridon <bochecha at fedoraproject.org>
Date: Wed Jan 23 12:40:27 2013 +0800
Make sure all files are UTF-8 encoded
Thanks Petr for spotting these during the review.
perl-Net-IDN-Nameprep.spec | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/perl-Net-IDN-Nameprep.spec b/perl-Net-IDN-Nameprep.spec
index 13edf59..808e3d5 100644
--- a/perl-Net-IDN-Nameprep.spec
+++ b/perl-Net-IDN-Nameprep.spec
@@ -36,6 +36,12 @@ for internationalizing the Domain Name System (DNS).
chmod -x Changes \
lib/Net/IDN/Nameprep.pm
+# Convert files to UTF-8
+for FILE in LICENSE README; do
+ iconv -f ISO_8859-1 -t UTF8 $FILE > $FILE.utf8
+ mv $FILE.utf8 $FILE
+done
+
%build
perl Build.PL installdirs=vendor
@@ -62,6 +68,7 @@ perl Build.PL installdirs=vendor
- Replace the usage of the %%{__perl} macro by the plain perl command.
- Add missing build requirements.
- Remove the incorrect executable bits.
+- Make sure all files are UTF-8 encoded.
* Fri Jan 04 2013 Mathieu Bridon <bochecha at fedoraproject.org> - 1.101-1
- Initial package for Fedora, with help from cpanspec.
More information about the perl-devel
mailing list