Skip Menu |

This queue is for tickets about the Number-Format CPAN distribution.

Report information
The Basics
Id: 3922
Status: resolved
Priority: 0/
Queue: Number-Format

People
Owner: WRW [...] cpan.org
Requestors: mirod [...] xmltwig.com
Cc:
AdminCc:

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



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
Newer versions of Number::Format fix this issue