Subject: | 'log debug test' fails with some locales |
On FreeBSD systems monthname abbreviations are printed with a trailing dot if a German locale (LC_ALL=de_DE.UTF-8) is active. This is causing the log debug test to fail:
...
# Failed test 'log debug test'
# at t/Bio-Gonzales-Util-Log.t line 18.
# '[09 Apr. 17:16:40] [DEBUG]: testdebug
# '
# doesn't match '(?^:^\[\d+ \w+ \d\d:\d\d:\d\d\] \[DEBUG\]: testdebug$)'
# Looks like you failed 1 test of 2.
t/Bio-Gonzales-Util-Log.t ..................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
...
It fails also with locales using non-latin characters, e.g. Russian:
...
# Failed test 'log debug test'
# at t/Bio-Gonzales-Util-Log.t line 18.
Wide character in print at /usr/perl5.24.1p/lib/site_perl/5.24.1/Test2/Formatter/TAP.pm line 124.
# 'Wide character in print at /usr/perl5.24.1p/lib/site_perl/5.24.1/amd64-freebsd/IO/Handle.pm line 418.
# [09 апр 20:00:47] [DEBUG]: testdebug
# '
# doesn't match '(?^:^\[\d+ \w+ \d\d:\d\d:\d\d\] \[DEBUG\]: testdebug$)'
# Looks like you failed 1 test of 2.
t/Bio-Gonzales-Util-Log.t ..................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
...