Subject: | t/date.t fails due to problems with Linux glibc setlocale |
This isn't so much a bug as a problem with the supported locales in certain Linux flavors and a solution for these problems. Internally, Perl does a setlocale(LC_ALL, ""). This causes problems on Linux systems, specifically RedHat and Fedora, that have a default locale that is UTF-8, for example en_US.utf8. This problem shows up in test failures in Date::Calc and also in Template test t/date.t test #25.
To solve this problem, set the LC_ALL environment variable to "C" or a non UTF-8 locale (en_US for example) before testing.