Skip Menu |

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

Report information
The Basics
Id: 99912
Status: open
Priority: 0/
Queue: Number-Format

People
Owner: Nobody in particular
Requestors: JMERELO [...] cpan.org
Cc:
AdminCc:

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



Subject: Locale problem with Perl 5.21.5
Installation fails with these errors # Failed test 'six digit rounding' # at t/format_number.t line 16. # got: '1,234568' # expected: '1.234568' # Failed test 'extra zeroes' # at t/format_number.t line 17. # got: '1,2300000' # expected: '1.2300000' # Failed test 'leading zero' # at t/format_number.t line 18. # got: '0,2300000' # expected: '0.2300000' # Failed test 'negative with zeros' # at t/format_number.t line 19. # got: '-100,0000000' # expected: '-100.0000000' # Looks like you failed 8 tests of 10. It should be noted that this is a Spanish locale and way of writing it. Maybe 5.21 is locale-conscious. 5.20 seems to work without a glitch.
On 2014-10-30 13:30:05, JMERELO wrote: Show quoted text
> Installation fails with these errors > > # Failed test 'six digit rounding' > # at t/format_number.t line 16. > # got: '1,234568' > # expected: '1.234568' > > # Failed test 'extra zeroes' > # at t/format_number.t line 17. > # got: '1,2300000' > # expected: '1.2300000' > > # Failed test 'leading zero' > # at t/format_number.t line 18. > # got: '0,2300000' > # expected: '0.2300000' > > # Failed test 'negative with zeros' > # at t/format_number.t line 19. > # got: '-100,0000000' > # expected: '-100.0000000' > # Looks like you failed 8 tests of 10. > > > It should be noted that this is a Spanish locale and way of writing > it. Maybe 5.21 is locale-conscious. 5.20 seems to work without a > glitch.
See https://rt.cpan.org/Ticket/Display.html?id=97607 for a possible patch.
On 2014-11-02 14:44:59, SREZIC wrote: Show quoted text
> On 2014-10-30 13:30:05, JMERELO wrote:
> > Installation fails with these errors > > > > # Failed test 'six digit rounding' > > # at t/format_number.t line 16. > > # got: '1,234568' > > # expected: '1.234568' > > > > # Failed test 'extra zeroes' > > # at t/format_number.t line 17. > > # got: '1,2300000' > > # expected: '1.2300000' > > > > # Failed test 'leading zero' > > # at t/format_number.t line 18. > > # got: '0,2300000' > > # expected: '0.2300000' > > > > # Failed test 'negative with zeros' > > # at t/format_number.t line 19. > > # got: '-100,0000000' > > # expected: '-100.0000000' > > # Looks like you failed 8 tests of 10. > > > > > > It should be noted that this is a Spanish locale and way of writing > > it. Maybe 5.21 is locale-conscious. 5.20 seems to work without a > > glitch.
> > See https://rt.cpan.org/Ticket/Display.html?id=97607 for a possible patch.
Still fails with 5.21.6.
On 2014-11-21 02:07:49, SREZIC wrote: Show quoted text
> On 2014-11-02 14:44:59, SREZIC wrote:
> > On 2014-10-30 13:30:05, JMERELO wrote:
> > > Installation fails with these errors > > > > > > # Failed test 'six digit rounding' > > > # at t/format_number.t line 16. > > > # got: '1,234568' > > > # expected: '1.234568' > > > > > > # Failed test 'extra zeroes' > > > # at t/format_number.t line 17. > > > # got: '1,2300000' > > > # expected: '1.2300000' > > > > > > # Failed test 'leading zero' > > > # at t/format_number.t line 18. > > > # got: '0,2300000' > > > # expected: '0.2300000' > > > > > > # Failed test 'negative with zeros' > > > # at t/format_number.t line 19. > > > # got: '-100,0000000' > > > # expected: '-100.0000000' > > > # Looks like you failed 8 tests of 10. > > > > > > > > > It should be noted that this is a Spanish locale and way of writing > > > it. Maybe 5.21 is locale-conscious. 5.20 seems to work without a > > > glitch.
> > > > See https://rt.cpan.org/Ticket/Display.html?id=97607 for a possible patch.
> > Still fails with 5.21.6.
And also with 5.21.7.