Subject: | Tests fail (with non-utf8 locale?) |
On some of my smokers I see the following test failures --- probably only if LC_ALL is set to a non-utf8 locale (e.g. C or de_DE.ISO8859-1):
...
"\x{00e3}" does not map to ascii at t/check-header.t line 29.
"\x{00c3}" does not map to ascii at t/check-header.t line 29.
"\x{00a5}" does not map to ascii at t/check-header.t line 29.
# Failed test 'dump and reload, no date'
# at t/check-header.t line 35.
# Structures begin differing at:
# $got->{title} = 'R\x{00c3}\x{00a5}dmansgatan'
# $expected->{title} = 'Rådmansgatan'
"\x{00e3}" does not map to ascii at t/check-header.t line 29.
"\x{00c3}" does not map to ascii at t/check-header.t line 29.
"\x{00a5}" does not map to ascii at t/check-header.t line 29.
# Failed test 'dump and reload, 2014-12-16'
# at t/check-header.t line 35.
# Structures begin differing at:
# $got->{slug} = 'r-x-00e3-dmansgatan'
# $expected->{slug} = 'r�-dmansgatan'
# date parameter must be PFT::Date at /tmpfs/.cpan-build-cpansand/2016071921/PFT-v1.0.0-6/blib/lib/PFT/Header.pm line 95.
# PFT::Header::_params_check(HASH(0x250a410)) called at /tmpfs/.cpan-build-cpansand/2016071921/PFT-v1.0.0-6/blib/lib/PFT/Header.pm line 141
# PFT::Header::new("PFT::Header", "title", "X", "date", 0) called at t/check-header.t line 38
# eval {...} called at t/check-header.t line 38
# Title is mandatory headers having complete date at t/check-header.t line 44.
# Year and month are mandatory for headers with date at t/check-header.t line 55.
"\x{00e3}" does not map to ascii at t/check-header.t line 68.
"\x{00c3}" does not map to ascii at t/check-header.t line 68.
"\x{00a5}" does not map to ascii at t/check-header.t line 68.
# Failed test 'reload from path'
# at t/check-header.t line 70.
# Structures begin differing at:
# $got->{slug} = 'r-x-00e3-dmansgatan'
# $expected->{slug} = 'r�-dmansgatan'
# Looks like you failed 3 tests of 14.
t/check-header.t .......
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/14 subtests
...