Skip Menu |

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

Report information
The Basics
Id: 103194
Status: resolved
Priority: 0/
Queue: Template-Plugin-Number-Format

People
Owner: darren [...] cpan.org
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.04
Fixed in: 1.06



Subject: Test suite fails with German locale
Fail reports will be visible in a few hours on http://matrix.cpantesters.org/?dist=Template-Plugin-Number-Format%201.04 On my systems (various linux and freebsd boxes), the fail/pass results depend on the locale setting: $ grep LC_ALL *.Template-Plugin-Number-Format-1.04* | perl -pe 's{^([^\.]+).*?:(.*)}{$1 $2}' fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.ISO8859-1 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 fail LC_ALL = de_DE.UTF-8 pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C pass LC_ALL = C
On 2015-03-30 02:38:50, SREZIC wrote: Show quoted text
> Fail reports will be visible in a few hours on > http://matrix.cpantesters.org/?dist=Template-Plugin-Number- > Format%201.04 > > On my systems (various linux and freebsd boxes), the fail/pass results > depend on the locale setting: >
[...] 1.05 still fails. It's probably better to use the locale "C" instead of "us", as the latter is not guaranteed to be installed on all systems, and is probably spelled differently. For example on a debian system: $ env LC_ALL=us perl -e1 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = "us", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). This is OK: $ env LC_ALL=en_US perl -e1 But this is best: $ env LC_ALL=C perl -e1
I've just uploaded 1.06, which uses C instead of us.
On 2015-03-30 09:10:51, DARREN wrote: Show quoted text
> I've just uploaded 1.06, which uses C instead of us.
This works good --- 100% pass on my smokers!
On Mon Mar 30 09:30:42 2015, SREZIC wrote: Show quoted text
> On 2015-03-30 09:10:51, DARREN wrote:
> > I've just uploaded 1.06, which uses C instead of us.
> > This works good --- 100% pass on my smokers!
Excellent! Thanks for helping me debug the failures; of course it makes perfect sense that formatting numbers would be locale-dependent, but it didn't register until I saw your message.