Files
perl-CPANPLUS-Dist-RPM/CPANPLUS-Dist-RPM-locale.patch
Christian Wittmer 66989a83b1 Accepting request 44923 from home:computersalat:devel:perl
Copy from home:computersalat:devel:perl/perl-CPANPLUS-Dist-RPM via accept of submit request 44923 revision 2.
Request was accepted with message:
self accept

OBS-URL: https://build.opensuse.org/request/show/44923
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-CPANPLUS-Dist-RPM?expand=0&rev=2
2010-08-08 15:03:07 +00:00

23 lines
832 B
Diff

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