Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

Report information
The Basics
Id:
117855
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
ribasushi [...] leporine.io
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: Fails tests when PERL_UNICODE=SAD is set
Failures are the same regardless whether Text::CSV_XS is available or not. I am not claiming setting this envvar is a reasonable thing to do, but some folks do so anyway: hence having the tests handle this gracefully makes sense. rabbit@Ahasver:~/.cpanm/work/1473924460.17235/Text-CSV-1.33$ perl -v This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64-linux-thread-multi-ld rabbit@Ahasver:~/.cpanm/work/1473924460.17235/Text-CSV-1.33$ PERL_UNICODE=SAD prove -lr ./t/00_pod.t ............... ok ./t/10_base.t .............. ok ./t/12_acc.t ............... ok ./t/15_flags.t ............. ok ./t/20_file.t .............. 1/105 # Failed test '10 - getline ESC +, '\r'' # at ./t/20_file.t line 144. # Failed test '11 - getline ESC +, '\r\r'' # at ./t/20_file.t line 144. # Failed test '12 - getline ESC +, '+\r\r'' # at ./t/20_file.t line 144. # Failed test '14 - getline ESC +, '"\r"'' # at ./t/20_file.t line 144. # Failed test '19 - getline ESC +, '"\r"\r'' # at ./t/20_file.t line 144. # Failed test '20 - getline ESC +, '"\r\r"\r'' # at ./t/20_file.t line 144. # Looks like you failed 6 tests of 105. ./t/20_file.t .............. Dubious, test returned 6 (wstat 1536, 0x600) Failed 6/105 subtests ./t/21_lexicalio.t ......... 1/105 # Failed test '10 - getline ESC +, '\r'' # at ./t/21_lexicalio.t line 153. # Failed test '11 - getline ESC +, '\r\r'' # at ./t/21_lexicalio.t line 153. # Failed test '12 - getline ESC +, '+\r\r'' # at ./t/21_lexicalio.t line 153. # Failed test '14 - getline ESC +, '"\r"'' # at ./t/21_lexicalio.t line 153. # Failed test '19 - getline ESC +, '"\r"\r'' # at ./t/21_lexicalio.t line 153. # Failed test '20 - getline ESC +, '"\r\r"\r'' # at ./t/21_lexicalio.t line 153. # Looks like you failed 6 tests of 105. ./t/21_lexicalio.t ......... Dubious, test returned 6 (wstat 1536, 0x600) Failed 6/105 subtests ./t/22_scalario.t .......... 1/105 # Failed test '10 - getline ESC +, '\r'' # at ./t/22_scalario.t line 152. # Failed test '11 - getline ESC +, '\r\r'' # at ./t/22_scalario.t line 152. # Failed test '12 - getline ESC +, '+\r\r'' # at ./t/22_scalario.t line 152. # Failed test '14 - getline ESC +, '"\r"'' # at ./t/22_scalario.t line 152. # Failed test '19 - getline ESC +, '"\r"\r'' # at ./t/22_scalario.t line 152. # Failed test '20 - getline ESC +, '"\r\r"\r'' # at ./t/22_scalario.t line 152. # Looks like you failed 6 tests of 105. ./t/22_scalario.t .......... Dubious, test returned 6 (wstat 1536, 0x600) Failed 6/105 subtests ./t/30_types.t ............. ok ./t/40_misc.t .............. ok ./t/41_null.t .............. ok ./t/45_eol.t ............... ok ./t/46_eol_si.t ............ ok ./t/50_utf8.t .............. ok ./t/51_utf8.t .............. 1/101 # Failed test 'Unicode default against expected warning' # at ./t/51_utf8.t line 94. # got: 'no warn' # expected: 'warn' utf8 "\xE1" does not map to Unicode at /home/rabbit/.cpanm/work/1473924460.17235/Text-CSV-1.33/lib/Text/CSV_PP.pm line 709, <$fh> line 2. Malformed UTF-8 character (fatal) at /home/rabbit/.cpanm/work/1473924460.17235/Text-CSV-1.33/lib/Text/CSV_PP.pm line 415, <$fh> line 2. # Looks like you planned 101 tests but ran 92. # Looks like you failed 1 test of 92 run. # Looks like your test exited with 255 just after 92. ./t/51_utf8.t .............. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 10/101 subtests ./t/55_combi.t ............. ok ./t/60_samples.t ........... ok ./t/65_allow.t ............. 91/1115 # Failed test 'Got 2030' # at ./t/65_allow.t line 393. # got: '2021' # expected: '2030' # Looks like you failed 1 test of 1115. ./t/65_allow.t ............. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1115 subtests ./t/70_rt.t ................ ok ./t/71_pp.t ................ ok ./t/75_hashref.t ........... ok ./t/76_magic.t ............. ok ./t/77_getall.t ............ ok ./t/80_diag.t .............. ok ./t/81_subclass.t .......... ok ./t/fields_containing_0.t .. ok ./t/rt99774.t .............. ok Test Summary Report ------------------- ./t/20_file.t (Wstat: 1536 Tests: 105 Failed: 6) Failed tests: 80, 82, 84, 88, 98, 100 Non-zero exit status: 6 ./t/21_lexicalio.t (Wstat: 1536 Tests: 105 Failed: 6) Failed tests: 80, 82, 84, 88, 98, 100 Non-zero exit status: 6 ./t/22_scalario.t (Wstat: 1536 Tests: 105 Failed: 6) Failed tests: 80, 82, 84, 88, 98, 100 Non-zero exit status: 6 ./t/51_utf8.t (Wstat: 65280 Tests: 92 Failed: 1) Failed test: 7 Non-zero exit status: 255 Parse errors: Bad plan. You planned 101 tests but ran 92. ./t/65_allow.t (Wstat: 256 Tests: 1115 Failed: 1) Failed test: 1099 Non-zero exit status: 1 Files=26, Tests=13721, 5 wallclock secs ( 1.81 usr 0.15 sys + 4.22 cusr 0.21 csys = 6.39 CPU) Result: FAIL
On Thu Sep 15 16:40:10 2016, RIBASUSHI wrote:
Show quoted text
> Failures are the same regardless whether Text::CSV_XS is available or > not. I am not claiming setting this envvar is a reasonable thing to > do, but some folks do so anyway: hence having the tests handle this > gracefully makes sense. > > rabbit@Ahasver:~/.cpanm/work/1473924460.17235/Text-CSV-1.33$ perl -v > This is perl 5, version 24, subversion 0 (v5.24.0) built for x86_64- > linux-thread-multi-ld > > rabbit@Ahasver:~/.cpanm/work/1473924460.17235/Text-CSV-1.33$ > PERL_UNICODE=SAD prove -lr > ./t/00_pod.t ............... ok > ./t/10_base.t .............. ok > ./t/12_acc.t ............... ok > ./t/15_flags.t ............. ok > ./t/20_file.t .............. 1/105 > # Failed test '10 - getline ESC +, '\r'' > # at ./t/20_file.t line 144. > > # Failed test '11 - getline ESC +, '\r\r'' > # at ./t/20_file.t line 144. > > # Failed test '12 - getline ESC +, '+\r\r'' > # at ./t/20_file.t line 144. > > # Failed test '14 - getline ESC +, '"\r"'' > # at ./t/20_file.t line 144. > > # Failed test '19 - getline ESC +, '"\r"\r'' > # at ./t/20_file.t line 144. > > # Failed test '20 - getline ESC +, '"\r\r"\r'' > # at ./t/20_file.t line 144. > # Looks like you failed 6 tests of 105. > ./t/20_file.t .............. Dubious, test returned 6 (wstat 1536, > 0x600) > Failed 6/105 subtests > ./t/21_lexicalio.t ......... 1/105 > # Failed test '10 - getline ESC +, '\r'' > # at ./t/21_lexicalio.t line 153. > > # Failed test '11 - getline ESC +, '\r\r'' > # at ./t/21_lexicalio.t line 153. > > # Failed test '12 - getline ESC +, '+\r\r'' > # at ./t/21_lexicalio.t line 153. > > # Failed test '14 - getline ESC +, '"\r"'' > # at ./t/21_lexicalio.t line 153. > > # Failed test '19 - getline ESC +, '"\r"\r'' > # at ./t/21_lexicalio.t line 153. > > # Failed test '20 - getline ESC +, '"\r\r"\r'' > # at ./t/21_lexicalio.t line 153. > # Looks like you failed 6 tests of 105. > ./t/21_lexicalio.t ......... Dubious, test returned 6 (wstat 1536, > 0x600) > Failed 6/105 subtests > ./t/22_scalario.t .......... 1/105 > # Failed test '10 - getline ESC +, '\r'' > # at ./t/22_scalario.t line 152. > > # Failed test '11 - getline ESC +, '\r\r'' > # at ./t/22_scalario.t line 152. > > # Failed test '12 - getline ESC +, '+\r\r'' > # at ./t/22_scalario.t line 152. > > # Failed test '14 - getline ESC +, '"\r"'' > # at ./t/22_scalario.t line 152. > > # Failed test '19 - getline ESC +, '"\r"\r'' > # at ./t/22_scalario.t line 152. > > # Failed test '20 - getline ESC +, '"\r\r"\r'' > # at ./t/22_scalario.t line 152. > # Looks like you failed 6 tests of 105. > ./t/22_scalario.t .......... Dubious, test returned 6 (wstat 1536, > 0x600) > Failed 6/105 subtests > ./t/30_types.t ............. ok > ./t/40_misc.t .............. ok > ./t/41_null.t .............. ok > ./t/45_eol.t ............... ok > ./t/46_eol_si.t ............ ok > ./t/50_utf8.t .............. ok > ./t/51_utf8.t .............. 1/101 > # Failed test 'Unicode default against expected warning' > # at ./t/51_utf8.t line 94. > # got: 'no warn' > # expected: 'warn' > utf8 "\xE1" does not map to Unicode at > /home/rabbit/.cpanm/work/1473924460.17235/Text-CSV- > 1.33/lib/Text/CSV_PP.pm line 709, <$fh> line 2. > Malformed UTF-8 character (fatal) at > /home/rabbit/.cpanm/work/1473924460.17235/Text-CSV- > 1.33/lib/Text/CSV_PP.pm line 415, <$fh> line 2. > # Looks like you planned 101 tests but ran 92. > # Looks like you failed 1 test of 92 run. > # Looks like your test exited with 255 just after 92. > ./t/51_utf8.t .............. Dubious, test returned 255 (wstat 65280, > 0xff00) > Failed 10/101 subtests > ./t/55_combi.t ............. ok > ./t/60_samples.t ........... ok > ./t/65_allow.t ............. 91/1115 > # Failed test 'Got 2030' > # at ./t/65_allow.t line 393. > # got: '2021' > # expected: '2030' > # Looks like you failed 1 test of 1115. > ./t/65_allow.t ............. Dubious, test returned 1 (wstat 256, > 0x100) > Failed 1/1115 subtests > ./t/70_rt.t ................ ok > ./t/71_pp.t ................ ok > ./t/75_hashref.t ........... ok > ./t/76_magic.t ............. ok > ./t/77_getall.t ............ ok > ./t/80_diag.t .............. ok > ./t/81_subclass.t .......... ok > ./t/fields_containing_0.t .. ok > ./t/rt99774.t .............. ok > > Test Summary Report > ------------------- > ./t/20_file.t (Wstat: 1536 Tests: 105 Failed: 6) > Failed tests: 80, 82, 84, 88, 98, 100 > Non-zero exit status: 6 > ./t/21_lexicalio.t (Wstat: 1536 Tests: 105 Failed: 6) > Failed tests: 80, 82, 84, 88, 98, 100 > Non-zero exit status: 6 > ./t/22_scalario.t (Wstat: 1536 Tests: 105 Failed: 6) > Failed tests: 80, 82, 84, 88, 98, 100 > Non-zero exit status: 6 > ./t/51_utf8.t (Wstat: 65280 Tests: 92 Failed: 1) > Failed test: 7 > Non-zero exit status: 255 > Parse errors: Bad plan. You planned 101 tests but ran 92. > ./t/65_allow.t (Wstat: 256 Tests: 1115 Failed: 1) > Failed test: 1099 > Non-zero exit status: 1 > Files=26, Tests=13721, 5 wallclock secs ( 1.81 usr 0.15 sys + 4.22 > cusr 0.21 csys = 6.39 CPU) > Result: FAIL
I'm hoping this is fixed by Text::CSV(_PP) 1.91 + Encode 2.88 (at least for me under several platforms), though the result may vary depending on the version of Encode module (and maybe on platforms). Closing for now, but feel free to reopen if it doesn't work for you. Thanks.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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