Skip Menu |

This queue is for tickets about the Bio-Gonzales CPAN distribution.

Report information
The Basics
Id: 124840
Status: resolved
Priority: 0/
Queue: Bio-Gonzales

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.078
Fixed in: (no value)



Subject: 'log debug test' may fail because of localized dates
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
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).
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
It seems that this does not happen in newer Bio-Gonzales releases.