On 2015-09-17 02:08:40, HMBRAND wrote:
Show quoted text> On Thu Sep 17 01:31:38 2015, SREZIC wrote:
>
> I know, and I also know the cause, but the solution was delayed
> because cpantesters was not available.
>
> The problem is the versioning that that module uses and the fact that
> if one forces a specific parser for a specific format, that is what
> the tests do, the minimum supported version was not sufficiently
> checked (if at all) so those tests would fail.
>
> If you could test in the same env from a git checkout, that would be
> helpful feedback
I tried commit 5a5abe274a5aa2189da843b6d4e43472e736be00 with various perls between 5.23.2 and 5.10.1, some of them with Spreadsheet::XLSX::Reader::LibXML installed, and it looks much better.
Only one perl (5.10.1) failed tests like this:
t/631_clr.t ..... 1/?
# Failed test 'no warnings'
# at t/631_clr.t line 53.
# There were 1 warning(s)
# Previous test 0 ''
# Use of uninitialized value $trailinq_zeros in length at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/ParseExcelFormatStrings.pm line 799.
# at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/ParseExcelFormatStrings.pm line 799.
# Spreadsheet::XLSX::Reader::LibXML::ParseExcelFormatStrings::_build_number(Spreadsheet::XLSX::Reader::LibXML::FmtDefault=HASH(0x380a2e0), Type::Tiny=HASH(0x288bc18), ARRAY(0x31832c8)) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/ParseExcelFormatStrings.pm line 325
# Spreadsheet::XLSX::Reader::LibXML::ParseExcelFormatStrings::parse_excel_format_string(Spreadsheet::XLSX::Reader::LibXML::FmtDefault=HASH(0x380a2e0), "**\\ #,###,#00,000.00,**", "Excel__168") called at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/ParseExcelFormatStrings.pm line 134
# Spreadsheet::XLSX::Reader::LibXML::ParseExcelFormatStrings::get_defined_conversion(Spreadsheet::XLSX::Reader::LibXML::FmtDefault=HASH(0x380a2e0), 168) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Delegation.pm line 110
# Spreadsheet::XLSX::Reader::LibXML::XMLReader::Styles::get_defined_conversion(StylesInstance=HASH(0x4640b20), 168) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Styles.pm line 288
# Spreadsheet::XLSX::Reader::LibXML::XMLReader::Styles::_get_header_and_position(StylesInstance=HASH(0x4640b20), "numFmts", 168) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Styles.pm line 419
# Spreadsheet::XLSX::Reader::LibXML::XMLReader::Styles::_add_sub_refs(StylesInstance=HASH(0x4640b20), HASH(0x47f9cf0), undef, 151, "cellXfs", undef) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/XMLReader/Styles.pm line 96
# Spreadsheet::XLSX::Reader::LibXML::XMLReader::Styles::get_format_position(StylesInstance=HASH(0x4640b20), 151, undef, undef) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Delegation.pm line 110
# Spreadsheet::XLSX::Reader::LibXML::get_format_position(Spreadsheet::XLSX::Reader::LibXML=HASH(0x11ce4e0), 151, undef, undef) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/x86_64-linux/Moose/Meta/Method/Delegation.pm line 110
# Spreadsheet::XLSX::Reader::LibXML::XMLReader::Worksheet::get_format_position(WorksheetInstance=HASH(0x47748a8), 151, undef, undef) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/GetCell.pm line 568
# Spreadsheet::XLSX::Reader::LibXML::GetCell::_build_out_the_cell(WorksheetInstance=HASH(0x47748a8), HASH(0x47f9db0)) called at /opt/perl-5.10.1/lib/site_perl/5.10.1/Spreadsheet/XLSX/Reader/LibXML/GetCell.pm line 95
# Spreadsheet::XLSX::Reader::LibXML::GetCell::get_cell(WorksheetInstance=HASH(0x47748a8), 11, 0) called at /tmp/Spreadsheet-Read/blib/lib/Spreadsheet/Read.pm line 319
# Spreadsheet::Read::_xlsx_libxml(Spreadsheet::XLSX::Reader::LibXML=HASH(0x11ce4e0)) called at /tmp/Spreadsheet-Read/blib/lib/Spreadsheet/Read.pm line 556
# Spreadsheet::Read::ReadData("files/attr.xlsx", "attr", 1) called at t/631_clr.t line 17
#
# Looks like you failed 1 test of 258.