Skip Menu |

This queue is for tickets about the libxml-perl CPAN distribution.

Report information
The Basics
Id: 135
Status: new
Priority: 0/
Queue: libxml-perl

People
Owner: Nobody in particular
Requestors: mark [...] twoshortplanks.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.07
Fixed in: (no value)



Subject: Make test fails stream test
The error is: t/stream..............FAILED test 11 Failed 1/11 tests, 90.91% okay t/subs................ok Running test by hand %perl -Mlib=lib t/stream.t 1..11 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 not ok 11 (i.e. I see no other debug info FYI: %perl -v This is perl, v5.6.1 built for i386-freebsd I'm running "4.2-RELEASE FreeBSD 4.2-RELEASE #0: Tue Jul 31 11:10:16 BST 2001" XML::Parser is version 2.30
[guest - Wed Jan 16 06:27:07 2002]: Show quoted text
> The error is: > > t/stream..............FAILED test 11 > Failed 1/11 tests, 90.91% okay > t/subs................ok > > Running test by hand > %perl -Mlib=lib t/stream.t > 1..11 > ok 1 > ok 2 > ok 3 > ok 4 > ok 5 > ok 6 > ok 7 > ok 8 > ok 9 > ok 10 > not ok 11 > > (i.e. I see no other debug info > > FYI: > > %perl -v > > This is perl, v5.6.1 built for i386-freebsd > > I'm running "4.2-RELEASE FreeBSD 4.2-RELEASE #0: Tue Jul 31 11:10:16 > BST 2001" > XML::Parser is version 2.30
Same here on Solaris 2.8 [18:43:36 webapp@tiger libxml-perl-0.07]$ uname -a SunOS tiger 5.8 Generic_108528-10 sun4u sparc SUNW,Ultra-Enterprise [18:43:38 webapp@tiger libxml-perl-0.07]$ perl -v This is perl, v5.6.1 built for sun4-solaris Greg Cope
[guest - Wed Jan 16 06:27:07 2002]: Show quoted text
> The error is: > > t/stream..............FAILED test 11 > Failed 1/11 tests, 90.91% okay > t/subs................ok > > Running test by hand > %perl -Mlib=lib t/stream.t > 1..11 > ok 1 > ok 2 > ok 3 > ok 4 > ok 5 > ok 6 > ok 7 > ok 8 > ok 9 > ok 10 > not ok 11 > > (i.e. I see no other debug info > > FYI: > > %perl -v > > This is perl, v5.6.1 built for i386-freebsd > > I'm running "4.2-RELEASE FreeBSD 4.2-RELEASE #0: Tue Jul 31 11:10:16 > BST 2001" > XML::Parser is version 2.30
Same here on Solaris 2.8 [18:43:36 webapp@tiger libxml-perl-0.07]$ uname -a SunOS tiger 5.8 Generic_108528-10 sun4u sparc SUNW,Ultra-Enterprise [18:43:38 webapp@tiger libxml-perl-0.07]$ perl -v This is perl, v5.6.1 built for sun4-solaris Greg Cope
From: per [...] glentvor.dk
[guest - Tue Jan 29 13:54:42 2002]: Show quoted text
> [guest - Wed Jan 16 06:27:07 2002]: >
> > The error is: > > > > t/stream..............FAILED test 11 > > Failed 1/11 tests, 90.91% okay > > t/subs................ok > > > > Running test by hand > > %perl -Mlib=lib t/stream.t > > 1..11 > > ok 1 > > ok 2 > > ok 3 > > ok 4 > > ok 5 > > ok 6 > > ok 7 > > ok 8 > > ok 9 > > ok 10 > > not ok 11 > > > > (i.e. I see no other debug info > > > > FYI: > > > > %perl -v > > > > This is perl, v5.6.1 built for i386-freebsd > > > > I'm running "4.2-RELEASE FreeBSD 4.2-RELEASE #0: Tue Jul 31 11:10:16 > > BST 2001" > > XML::Parser is version 2.30
> > Same here on Solaris 2.8 > > [18:43:36 webapp@tiger libxml-perl-0.07]$ uname -a > SunOS tiger 5.8 Generic_108528-10 sun4u sparc SUNW,Ultra-Enterprise > [18:43:38 webapp@tiger libxml-perl-0.07]$ perl -v > > This is perl, v5.6.1 built for sun4-solaris > > Greg Cope >
The error seems to be quite simple, since the particular test compares to data streams with different encodings. Line 104 of t/stream.t reads: This, '\302\240', would be a bad character in UTF-8. and is compared to (from line 104): This, '\240', would be a bad character in UTF-8. Therefore, removing \302 does the trick! BR per
From: larrysh [...] cpan.org
[guest - Thu Jun 20 03:28:12 2002]: [SNIP] Show quoted text
> The error seems to be quite simple, since the particular test compares > to data streams with different encodings. > > Line 104 of t/stream.t reads: > > This, '\302\240', would be a bad character in UTF-8. > > and is compared to (from line 104): > > This, '\240', would be a bad character in UTF-8. > > Therefore, removing \302 does the trick! > > BR > > per
Small correction: Line 64 has the \302, while line 44 has the one with just \240. The script itself is only 104 lines long. ;)
From: rfb [...] bookmanager.com
I'm had the same problem on my linux box, found where the error in the test and 'fixed' it. I'd just like to know what the expected behavior is, should the module be filtering out the \302 char? -Ryan
From: marek.rouchal [...] infineon.com
The problem is still there (perl-5.8.1, all latest modules, compiled with gcc-3.1.1, libexpat-1.95.6 for XML::Parser). Can the module's author please clarify, what is the expected behaviour? Cheers, Marek