Skip Menu |

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

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

People
Owner: WRW [...] cpan.org
Requestors: jonasbn [...] cpan.org
Cc:
AdminCc:

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



Subject: Failing tests with price formatting and simple patch
Hello, I experienced some failing tests on Apple OS X, 10.4 with perl 5.8.6, with your Number::Format 1.51. Details: Darwin hyperstation.local 8.7.1 Darwin Kernel Version 8.7.1: Wed Jun 7 16:19:56 PDT 2006; root:xnu-792.9.72.obj~2/RELEASE_I386 i386 i386 This is perl, v5.8.6 built for darwin-thread-multi-2level (with 2 registered patches, see perl -V for more detail) The problem was with t/format_price.t Apparently the tests expected the currency symbol and the price to be separated by a single space, the regular expression, however does not seem to handle the case where no white space is present but we need the space separation anyway and providing the parameter as a string as in the test would imply no trailing whitespace. I am however unsure why this works for using the locale instead, does the locale definition have trailing whitespace? - anyway, all tests pass with the included patch. BTW, cool module :) jonasbn
Subject: Format.pm.patch
--- Format.pm 2006-04-26 18:47:37.000000000 +0200 +++ /Users/jonasbn/Desktop/Format.pm 2006-09-07 21:24:20.000000000 +0200 @@ -643,7 +643,7 @@ $decimal .= '0'x($precision - length $decimal); # Combine it all back together and return it. - $self->{int_curr_symbol} =~ s/\s+$/ /; + $self->{int_curr_symbol} =~ s/\s*$/ /; my $result = ($self->{int_curr_symbol} . ($precision ? join($self->{mon_decimal_point}, $integer, $decimal) :
BTW if you need a co-maintainer for this business critical module, consider me a volunteer :) jonasbn
Subject: Re: [rt.cpan.org #21382] Failing tests with price formatting and simple patch
Date: Thu, 7 Sep 2006 17:03:54 -0400
To: bug-Number-Format [...] rt.cpan.org
From: "Bill Ward" <bill [...] wards.net>
I have recently moved the module to SourceForge so if you want to help out, give me your SF account id... On 9/7/06, Jonas B. Nielsen via RT <bug-Number-Format@rt.cpan.org> wrote: Show quoted text
> > > Queue: Number-Format > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > > > BTW if you need a co-maintainer for this business critical module, > consider me a volunteer :) > > jonasbn >
-- Help bring back the San Jose Earthquakes - http://www.soccersiliconvalley.com/
Subject: Re: [rt.cpan.org #21382] Failing tests with price formatting and simple patch
Date: Thu, 7 Sep 2006 23:07:29 +0200
To: bug-Number-Format [...] rt.cpan.org
From: "Jonas B. Nielsen" <jonasbn [...] gmail.com>
Hi Bill, my SF id would be: jonasbn Thanks, just let me know what I can do to help, like going through what is in the rt.cpan queue or something jonasbn On 07/09/2006, at 23.04, Bill Ward via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > > > I have recently moved the module to SourceForge so if you want to > help out, > give me your SF account id... > > On 9/7/06, Jonas B. Nielsen via RT <bug-Number-Format@rt.cpan.org> > wrote:
>> >> >> Queue: Number-Format >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > >> >> BTW if you need a co-maintainer for this business critical module, >> consider me a volunteer :) >> >> jonasbn >>
> > > > -- > Help bring back the San Jose Earthquakes - > http://www.soccersiliconvalley.com/ > > I have recently moved the module to SourceForge so if you want to > help out, give me your SF account id... > > On 9/7/06, Jonas B. Nielsen via RT < bug-Number-Format@rt.cpan.org> > wrote: > Queue: Number-Format > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > > > BTW if you need a co-maintainer for this business critical module, > consider me a volunteer :) > > jonasbn > > > > -- > Help bring back the San Jose Earthquakes - http:// > www.soccersiliconvalley.com/
Subject: Re: [rt.cpan.org #21382] Failing tests with price formatting and simple patch
Date: Thu, 7 Sep 2006 17:42:53 -0400
To: bug-Number-Format [...] rt.cpan.org
From: "Bill Ward" <bill [...] wards.net>
Done. Please email me directly instead of going through RT. On 9/7/06, Jonas B. Nielsen via RT <bug-Number-Format@rt.cpan.org> wrote: Show quoted text
> > > Queue: Number-Format > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > > > Hi Bill, > > my SF id would be: jonasbn > > Thanks, just let me know what I can do to help, like going through > what is in the rt.cpan queue or something > > jonasbn > > On 07/09/2006, at 23.04, Bill Ward via RT wrote: >
> > > > <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > > > > > I have recently moved the module to SourceForge so if you want to > > help out, > > give me your SF account id... > > > > On 9/7/06, Jonas B. Nielsen via RT <bug-Number-Format@rt.cpan.org> > > wrote:
> >> > >> > >> Queue: Number-Format > >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > > >> > >> BTW if you need a co-maintainer for this business critical module, > >> consider me a volunteer :) > >> > >> jonasbn > >>
> > > > > > > > -- > > Help bring back the San Jose Earthquakes - > > http://www.soccersiliconvalley.com/ > > > > I have recently moved the module to SourceForge so if you want to > > help out, give me your SF account id... > > > > On 9/7/06, Jonas B. Nielsen via RT < bug-Number-Format@rt.cpan.org> > > wrote: > > Queue: Number-Format > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21382 > > > > > BTW if you need a co-maintainer for this business critical module, > > consider me a volunteer :) > > > > jonasbn > > > > > > > > -- > > Help bring back the San Jose Earthquakes - http:// > > www.soccersiliconvalley.com/
> > >
-- Help bring back the San Jose Earthquakes - http://www.soccersiliconvalley.com/
From: WRW [...] cpan.org
Now that Number::Format is hosted on SourceForge, we will be able to release new versions there. Version 1.52 will include this patch.
I believe this is fixed.