Skip Menu |
 

This queue is for tickets about the Text-Autoformat CPAN distribution.

Report information
The Basics
Id: 1962
Status: new
Priority: 0/
Queue: Text-Autoformat

People
Owner: Nobody in particular
Requestors: marek.rouchal [...] infineon.com
Cc:
AdminCc:

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



Subject: Text::Autoformat test errors on Solaris
Download (untitled) / with headers
text/plain 1.2k
This is Text::Autoformat 1.04, perl 5.8.0 (shared libperl, ithreads), Solaris/Sparc 7, Forte 6.2 compiler. Line 150 of Autoformat.pm should read: < my $formatted = sprintf "%$fmtnum.${dlen}lf", $num; Show quoted text
> my $formatted = sprintf "%$fmtnum.${dlen}Lf", $num;
Solaris *printf chokes on %lf (rather than %Lf) Furthermore, the test reports (after this change): ok 26 expected [***????.????*** *** 1.0 *** *** 1.1 *** *** 1.0000*** *** 1.0001*** *** 1.2345*** *** 1.2346*** ***1111.0 *** ***####.####*** ***????.????*** ***????.????*** *** 0.0 *** ] but got [*** NaN*** *** 1.0 *** *** 1.1 *** *** 1.0000*** *** 1.0001*** *** 1.2345*** *** 1.2346*** ***1111.0 *** ***####.####*** ***????.????*** ***????.????*** *** 0.0 *** ] not ok 27 expected [*** 1.0000*** *** 1.1000*** *** 1.0000*** *** 1.0001*** *** 1.2345*** *** 1.2346*** ***1111.0000*** ***####.####*** *** 0.0000*** ] but got [*** NaN*** *** 1.0000*** *** 1.1000*** *** 1.0000*** *** 1.0001*** *** 1.2345*** *** 1.2346*** ***1111.0000*** ***####.####*** *** 0.0000*** ] not ok 28 Maybe the module has to be platform-specific (%lf vs. %Lf) and/or the test must consider different printf implementations? Best regards, Marek


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.