Skip Menu |

This queue is for tickets about the Catalyst-Plugin-Unicode-Encoding CPAN distribution.

Report information
The Basics
Id: 64427
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-Unicode-Encoding

People
Owner: Nobody in particular
Requestors: CHORNY [...] cpan.org
Cc:
AdminCc:

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



Subject: test error
Strawberry Perl 5.10.1, Windows XP SP2 Russian. Catalyst::Runtime 5.80018 Original error - see attached file lwpold.txt C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t t/01use.t ............. ok # Failed test 'content contains hoge' # at t/04live.t line 42. # got: '' # expected: 'уБ╗уБТ' # Failed test 'got 1234 5678' # at t/04live.t line 62. # got: '' # expected: 'сИ┤хЩ╕' # Looks like you failed 2 tests of 17. t/04live.t ............ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/17 subtests t/05config.t .......... ok Use of uninitialized value $path_info_part in substr at C:/strawberry/perl/site/lib/Catalyst/Engine/CGI.pm line 171. # Failed test at t/06request_decode.t line 58. # Failed test at t/06request_decode.t line 59. Wide character in print at C:/strawberry/perl/lib/Test/Builder.pm line 1753. # got: undef # expected: 'уБВ' # Looks like you failed 2 tests of 21. t/06request_decode.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/21 subtests Test Summary Report ------------------- t/04live.t (Wstat: 512 Tests: 17 Failed: 2) Failed tests: 7, 12 Non-zero exit status: 2 t/06request_decode.t (Wstat: 512 Tests: 21 Failed: 2) Failed tests: 17-18 Non-zero exit status: 2 Files=4, Tests=41, 18 wallclock secs ( 0.11 usr + 0.03 sys = 0.14 CPU) Result: FAIL Failed 2/4 test programs. 4/41 subtests failed. dmake.EXE: Error code 130, while making 'test_dynamic' After upgrading to latest LWP (5.837) error in t/04live.t disappeared. See file lwpnew.txt. Upgrading URI, Encode, Test::WWW::Mechanize::Catalyst did not result in any changes. Similar report on cpantesters: http://www.cpantesters.org/cpan/report/98b700ce-106c-11e0-8d76-18d32387f138 -- Alexandr Ciornii, http://chorny.net
Subject: lwpold.txt
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t t/01use.t ............. ok # Failed test 'content contains hoge' # at t/04live.t line 42. # got: '' # expected: 'ほげ' # Failed test 'got 1234 5678' # at t/04live.t line 62. # got: '' # expected: 'ሴ噸' # Looks like you failed 2 tests of 17. t/04live.t ............ Dubious, test returned 2 (wstat 512, 0x200) Failed 2/17 subtests t/05config.t .......... ok Use of uninitialized value $path_info_part in substr at C:/strawberry/perl/site/lib/Catalyst/Engine/CGI.pm line 171. # Failed test at t/06request_decode.t line 58. # Failed test at t/06request_decode.t line 59. Wide character in print at C:/strawberry/perl/lib/Test/Builder.pm line 1753. # got: undef # expected: 'あ' # Looks like you failed 2 tests of 21. t/06request_decode.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/21 subtests Test Summary Report ------------------- t/04live.t (Wstat: 512 Tests: 17 Failed: 2) Failed tests: 7, 12 Non-zero exit status: 2 t/06request_decode.t (Wstat: 512 Tests: 21 Failed: 2) Failed tests: 17-18 Non-zero exit status: 2 Files=4, Tests=41, 18 wallclock secs ( 0.11 usr + 0.03 sys = 0.14 CPU) Result: FAIL Failed 2/4 test programs. 4/41 subtests failed. dmake.EXE: Error code 130, while making 'test_dynamic'
Subject: lwpnew.txt
C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t t/01use.t ............. ok t/04live.t ............ ok t/05config.t .......... ok Use of uninitialized value $path_info_part in substr at C:/strawberry/perl/site/lib/Catalyst/Engine/CGI.pm line 171. # Failed test at t/06request_decode.t line 58. # Failed test at t/06request_decode.t line 59. Wide character in print at C:/strawberry/perl/lib/Test/Builder.pm line 1753. # got: undef # expected: 'あ' # Looks like you failed 2 tests of 21. t/06request_decode.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/21 subtests Test Summary Report ------------------- t/06request_decode.t (Wstat: 512 Tests: 21 Failed: 2) Failed tests: 17-18 Non-zero exit status: 2 Files=4, Tests=41, 17 wallclock secs ( 0.09 usr + 0.06 sys = 0.16 CPU) Result: FAIL Failed 1/4 test programs. 2/41 subtests failed. dmake.EXE: Error code 130, while making 'test_dynamic'
From: mitakaa [...] gmail.com
It was similar problem here. Perl: This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi After upgrading Encode to 2.42 two tests from the 04live.t was failing. It was the same result for Encode version >= 2.40 (see encode2_40-lwp5_836-failed.txt). Downgrading Encode 2.39 seem to make all tests to be successful (see encode2_39-lwp5_836- successful.txt) Alternatively upgrading LWP to version >= 5.837, Encode.pm to latest 2.42 makes all test to be successful again (see encode2_42-lwp5_837-successful.txt)
Subject: encode2_39-lwp5_836-successful.txt
Encode version 999 required--this is only version 2.39. LWP version 999 required--this is only version 5.836. Catalyst::Plugin::Unicode::Encoding version 999 required--this is only version 1.1. t/01use.t ............. 1..1 ok 1 - use Catalyst::Plugin::Unicode::Encoding; ok t/04live.t ............ ok 1 - use TestApp; ok 2 - get main page ok 3 - see if it has our text ok 4 - Content-Type with charset ok 5 - get unicode_no_enc ok 6 - Content-Type with no charset ok 7 - content contains hoge ok 8 - get unicode ok 9 - Content-Type with charset ok 10 - content contains hoge ok 11 - get bytes ok 12 - got 1234 5678 ok 13 - get file ok 14 - got filehandle contents ok 15 - get latin1 ok 16 - Content-Type with charset ok 17 - content octets are UTF-8 1..17 ok t/05config.t .......... ok 1 - use TestApp; ok 2 - encoding configured ok 1..2 ok t/06request_decode.t .. 1..21 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok 21 ok All tests successful. Files=4, Tests=41, 8 wallclock secs ( 0.08 usr 0.03 sys + 6.25 cusr 0.26 csys = 6.62 CPU) Result: PASS
Subject: encode2_42-lwp5_837-successful.txt
Encode version 999 required--this is only version 2.42. LWP version 999 required--this is only version 5.837. Catalyst::Plugin::Unicode::Encoding version 999 required--this is only version 1.1. t/01use.t ............. 1..1 ok 1 - use Catalyst::Plugin::Unicode::Encoding; ok t/04live.t ............ ok 1 - use TestApp; ok 2 - get main page ok 3 - see if it has our text ok 4 - Content-Type with charset ok 5 - get unicode_no_enc ok 6 - Content-Type with no charset ok 7 - content contains hoge ok 8 - get unicode ok 9 - Content-Type with charset ok 10 - content contains hoge ok 11 - get bytes ok 12 - got 1234 5678 ok 13 - get file ok 14 - got filehandle contents ok 15 - get latin1 ok 16 - Content-Type with charset ok 17 - content octets are UTF-8 1..17 ok t/05config.t .......... ok 1 - use TestApp; ok 2 - encoding configured ok 1..2 ok t/06request_decode.t .. 1..21 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok 21 ok All tests successful. Files=4, Tests=41, 7 wallclock secs ( 0.08 usr 0.01 sys + 6.26 cusr 0.30 csys = 6.65 CPU) Result: PASS
Subject: encode2_40-lwp5_836-failed.txt
Encode version 999 required--this is only version 2.40. (affects 2.41 and 2.42 also) LWP version 999 required--this is only version 5.836. Catalyst::Plugin::Unicode::Encoding version 999 required--this is only version 1.1. t/01use.t ............. 1..1 ok 1 - use Catalyst::Plugin::Unicode::Encoding; ok t/04live.t ............ ok 1 - use TestApp; ok 2 - get main page ok 3 - see if it has our text ok 4 - Content-Type with charset ok 5 - get unicode_no_enc ok 6 - Content-Type with no charset not ok 7 - content contains hoge # Failed test 'content contains hoge' # at t/04live.t line 42. # got: '' # expected: 'ほげ' ok 8 - get unicode ok 9 - Content-Type with charset ok 10 - content contains hoge ok 11 - get bytes not ok 12 - got 1234 5678 # Failed test 'got 1234 5678' # at t/04live.t line 62. # got: '' # expected: 'ሴ噸' ok 13 - get file ok 14 - got filehandle contents ok 15 - get latin1 ok 16 - Content-Type with charset ok 17 - content octets are UTF-8 1..17 # Looks like you failed 2 tests of 17. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/17 subtests t/05config.t .......... ok 1 - use TestApp; ok 2 - encoding configured ok 1..2 ok t/06request_decode.t .. 1..21 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok 21 ok Test Summary Report ------------------- t/04live.t (Wstat: 512 Tests: 17 Failed: 2) Failed tests: 7, 12 Non-zero exit status: 2 Files=4, Tests=41, 8 wallclock secs ( 0.10 usr 0.00 sys + 6.38 cusr 0.24 csys = 6.72 CPU) Result: FAIL
Thanks for the bug report, I've bumbed the version of the dependency required.