Subject: | Tests do not pass with locale on |
When locale is set to something different than en then the tests do not pass, as they assume that en is used.
Adding the 2 lines
eval { require POSIX; POSIX->import( qw(locale_h) ) };
unless ($@) { setlocale(&POSIX::LC_ALL, "en"); }
at the beginning of the faulty tests (t/format_number.t, t/format_picture.t and t/format_price.t) makes the tests pass (but note that in this case the behaviour with a different locale is not tested, it might be useful to add tests for this).
Thanks