Template2 icon indicating copy to clipboard operation
Template2 copied to clipboard

Template-Toolkit-3.101: t/filter.t seems to contain locale-dependent tests.

Open twata1 opened this issue 3 years ago • 1 comments

Hello,

When I tried to prove -blv t\t_filter.t on Windows 8.1 64 bit under Strawberry Perl 5.24.1 64 bit, the test failed. It seems to me that t\t_filter.t contains locale-dependent tests.

Here are the results of the test. filter_t-results.txt

Relevant part of the results:

ok 84 - template text 41 processed OK: [% 'arse' | stderr %]\nstderr: [%...
MATCH FAILED
 input: [[% 'arse' | stderr %]\nstderr: [% stderr %]\n]
expect: [stderr: arse]
output: [stderr: Locale 'Japanese_Japan.932' may not work well.  Some characters in it are not recognized by Perl.\narse]
not ok 85 - template text 41 did not match expected
ok 86 - template text 42 processed OK: [% percent = '%'\n   left    = "[...

Thank you,

twata1 avatar Jan 22 '23 12:01 twata1

I have found a workaround by looking at How to fix a locale warning from perl in windows 7 and doing set LC_ALL=C.

Thank you,

twata1 avatar Jan 29 '23 11:01 twata1