Skip Menu |

This queue is for tickets about the File-Slurp-Unicode CPAN distribution.

Report information
The Basics
Id: 60187
Status: rejected
Priority: 0/
Queue: File-Slurp-Unicode

People
Owner: david [...] cpan.org
Requestors: PHILKIME [...] cpan.org
Cc:
AdminCc:

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



Subject: Tests can't work on Windows
Could you replace the compare() sub in 20_write_file.t with, say, this: sub compare { my ($test_name) = @_; seek($fh, 0,0); my @nole_lines = $fh->getlines; my @nole_data = @data; # Strip non-char characters to get rid of line endings on any platform # Otherwise the tests fail on non-UNIX due to "\n" use above @nole_lines = map {s/\W//g; $_} @nole_lines; @nole_data = map {s/\W//g; $_} @nole_data; is_deeply([@nole_lines], \@nole_data, $test_name); } So that the tests pass under Windows?
Hi, thanks for the patch--I'm sorry it took so long for me to notice it. :-( I'm rejecting it, not because it was wrong, but because I've removed File::Slurp::Unicode from CPAN and will not be supporting it (File::Slurp now has equivalent functionality).