Files
perl-CPANPLUS-Dist-RPM/CPANPLUS-Dist-RPM-locale.patch

23 lines
832 B
Diff
Raw Permalink Normal View History

diff -ruN CPANPLUS-Dist-RPM-0.0.8-orig/lib/CPANPLUS/Dist/RPM.pm CPANPLUS-Dist-RPM-0.0.8/lib/CPANPLUS/Dist/RPM.pm
--- CPANPLUS-Dist-RPM-0.0.8-orig/lib/CPANPLUS/Dist/RPM.pm 2009-01-17 21:19:29.000000000 +0100
+++ CPANPLUS-Dist-RPM-0.0.8/lib/CPANPLUS/Dist/RPM.pm 2010-08-08 16:53:35.000000000 +0200
@@ -28,12 +28,17 @@
use Path::Class;
use Pod::POM;
use Pod::POM::View::Text;
-use POSIX qw{ strftime };
+use POSIX qw{ strftime locale_h};
use Readonly;
use Software::LicenseUtils;
use Text::Autoformat;
use Template;
+# Set locale to en_US.UTF8 so that dates in changelog will be correct
+# if using another locale. Also ensures writing out UTF8. (Thanks to
+# Roy-Magne Mo for pointing out the problem and providing a solution.)
+setlocale(LC_ALL, "en_US.UTF-8");
+
our $VERSION = '0.0.8';
# debugging