On 2018-03-21 03:50:19, SREZIC wrote:
Show quoted text> On a system with German locale (LC_ALL=de_DE.UTF-8):
>
> # Failed test 'log debug test'
> # at t/Bio-Gonzales-Util-Log.t line 18.
> Wide character in print at /opt/perl-
> 5.27.10/lib/site_perl/5.27.10/Test2/Formatter/TAP.pm line 113.
> # '[21 M�r 07:24:42] [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
Additionally, if the localized date contains unicode characters with codepoints > 255, there's an additional warning:
# Failed test 'log debug test'
# at t/Bio-Gonzales-Util-Log.t line 18.
Wide character in print at /usr/perl5.26.1p/lib/site_perl/5.26.1/Test2/Formatter/TAP.pm line 113.
# 'Wide character in print at /usr/perl5.26.1p/lib/5.26.1/amd64-freebsd/IO/Handle.pm line 420.
# [22 ožu 05:50:24] [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
(This is with Croatian locale, LC_ALL=hr_HR.UTF-8).