Plaggerを入れるまで その4 DateTime::Format::Strptime

インストールエラーになりました、その4。


CPAN Terminal> i DateTime::Format::Strptime

[MSG] No '/root/.cpanplus/custom-sources' dir, skipping custom sources
Installing DateTime::Format::Strptime (1.0702)
...
Writing Makefile for DateTime::Format::Strptime
Running [/usr/bin/make test ]...
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/001_load.t...............ok
t/002_dates.t..............ok
t/003_every.t..............ok
t/004_locale_defaults.t....Can't call method "year" on an undefined value at t/004_locale_defaults.t line 45.
# Looks like you planned 48 tests but only ran 36.
# Looks like your test died just after 36.
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 12/48 subtests
t/005_croak.t..............ok
t/006_locales.t............ok
t/007_edge.t...............ok
...

cpanのレポートページでもわかりますが、けっこうエラーになってまして、ほぼ同じところです。
こちらのかたも書いていますが、frのlocaleの問題。


# cd .cpanplus/5.10.0/build/DateTime-Format-Strptime-1.0702/
# auto_ef t/004_locale_defaults.t
8859-1
テストの中身。

...
# French
#);my @tests = (
['fr', '%x', '31 d\351c 1998'],
['fr', '%X', '12:34:56'],
['fr', '%c', '31 d\351c 1998 12:34:56'],
...
文字化けしているところの後ろに.(ピリオド)を追加すればOK。