Subject: | Date in report may contain broken characters |
On a system running perl 5.28.0 and a German locale (LANG=de_DE.UTF-8) the date in the HTML looks broken (at least in March):
<div id="footer">Generated by TAP::Formatter::HTML v0.11 @ 09:50:17 06-M�r-2020</div>
This was not the case with older perl versions, e.g. with perl 5.12.3.
I think that the problem is caused by a change in the handling of POSIX::strftime regarding the internal utf8 flag, probably since perl 5.22.0. Maybe the problem may be fixed for newer perls by calling
binmode(..., ':utf8)
(not tested), but I fear that it will then appear broken for older perls.
Another possible fix is to not use a localized date, but something close to ISO8601, e.g. like this:
<div id="footer">Generated by [% formatter.class %] v[% formatter.version %] @ [% USE date %][% date.format(date.now, "%F %T") %]</div>