Skip Menu |

This queue is for tickets about the XML-LibXML-Tools CPAN distribution.

Report information
The Basics
Id: 8513
Status: resolved
Priority: 0/
Queue: XML-LibXML-Tools

People
Owner: Nobody in particular
Requestors: henry.gao [...] ubs.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.80
Fixed in: (no value)



Subject: still have some make test error from iconv
Show quoted text
>$ make test >PERL_DL_NONLAZY=1 /sbcimp/run/pd/perl/5.8.5/bin/perl >"-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', >'blib/arch')" t/*.t >t/01_basic..........ok > >t/02_complex2dom....ok > >t/03_add............ok > >t/04_update.........ok > >t/05_delete.........ok > >t/06_iconv..........ok 2/5# Failed test (t/06_iconv.t at >line 29) >t/06_iconv..........NOK 3Wide character in print at >/sbcimp/run/pd/perl/5.8.5/lib/Test/Builder.pm line 910. ># got: '<?xml version="1.0" encoding="UTF-8"?> ># <root><enc>1 ee</enc></root> ># ' ># expected: '<?xml version="1.0" encoding="UTF-8"?> ># <root><enc>1 eA<</enc></root> ># ' >Wide character in print at >/sbcimp/run/pd/perl/5.8.5/lib/Test/Builder.pm line 910. ># <?xml version="1.0" encoding="UTF-8"?> ># <root><enc>1 ee</enc></root> ># ne <?xml version="1.0" encoding="UTF-8"?> ># <root><enc>1 eA<</enc></root> >t/06_iconv..........ok 4/5# Failed test (t/06_iconv.t at >line 39) >t/06_iconv..........NOK 5# '' > ># ne ># '' ># Looks like you failed 2 tests of 5. >t/06_iconv..........dubious > > Test returned status 2 (wstat 512, 0x200) >DIED. FAILED tests 3, 5 > Failed 2/5 tests, 60.00% okay >Failed Test Stat Wstat Total Fail Failed List of Failed >--------------------------------------------------------------- >---------------- >t/06_iconv.t 2 512 5 2 40.00% 3 5 >Failed 1/6 test scripts, 83.33% okay. 2/37 subtests failed, >94.59% okay. >*** Error code 2 >make: Fatal error: Command failed for target `test_dynamic'
Show quoted text
> the output of perl -V is > $ perl -V > Summary of my perl5 (revision 5 version 8 subversion 5) configuration: > Platform: > osname=solaris, osvers=2.6, archname=sun4-solaris-thread-multi > uname='sunos ssyd0046dsc 5.6 generic_105181-35 sun4u sparc > sunw,ultra-2 ' > config_args='-Dprefix=/sbcimp/run/pd/perl/5.8.5 > -Dprivlib=/sbcimp/run/pd/perl/5.8.5/lib > -Darchlib=/sbcimp/run/pd/perl/5.8.5/lib > -Dsitelib=/sbcimp/run/pd/perl/5.8.5/lib > -Dsitearch=/sbcimp/run/pd/perl/5.8.5/lib > -Dlocincpth=/sbcimp/run/pd/gdbm/1.8.3/include > -Dloclibpth=/sbcimp/run/pd/gdbm/1.8.3/lib -Dcc=gcc -Dusethreads > -Uinstallusrbinperl -Dperladmin=dl-pdsupport@ubs.com > -Dcf_email=dl-pdsupport@ubs.com -des' > hint=recommended, useposix=true, d_sigaction=define > usethreads=define use5005threads=undef useithreads=define > usemultiplicity=define > useperlio=define d_sfio=undef uselargefiles=define usesocks=undef > use64bitint=undef use64bitall=undef uselongdouble=undef > usemymalloc=n, bincompat5005=undef > Compiler: > cc='gcc', ccflags ='-D_REENTRANT -fno-strict-aliasing -pipe > -I/sbcimp/run/pd/gdbm/1.8.3/include -D_LARGEFILE_SOURCE > -D_FILE_OFFSET_BITS=64', > optimize='-O', > cppflags='-D_REENTRANT -fno-strict-aliasing -pipe > -I/sbcimp/run/pd/gdbm/1.8.3/include' > ccversion='', gccversion='3.1', gccosandvers='solaris2.6' > intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321 > d_longlong=define, longlongsize=8, d_longdbl=define, > longdblsize=16 > ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', > lseeksize=8 > alignbytes=8, prototype=define > Linker and Libraries: > ld='gcc', ldflags =' -L/sbcimp/run/pd/gdbm/1.8.3/lib ' > libpth=/sbcimp/run/pd/gdbm/1.8.3/lib /usr/lib /usr/ccs/lib > libs=-lsocket -lnsl -lgdbm -ldl -lm -lpthread -lc > perllibs=-lsocket -lnsl -ldl -lm -lpthread -lc > libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a > gnulibc_version='' > Dynamic Linking: > dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' > cccdlflags='-fPIC', lddlflags='-G -L/sbcimp/run/pd/gdbm/1.8.3/lib' > output of uname -a: > $ uname -a > SunOS ssyd0046dsc 5.6 Generic_105181-35 sun4u sparc SUNW,Ultra-2
I saw a FAIL for the cpan-testers on an old solaris as well... Perhaps you should write a patch for the module yourself; wheeding out Text::Iconv for old solaris versions. If you do - please suply me with it. The code in XML::LibXML::Tools is very transparant and readable, so you should have no trouble with that. Sorry I can't/won't help any further.
From: Geir Aalberg
On Thu Nov 18 10:03:11 2004, SINISTER wrote: Show quoted text
> I saw a FAIL for the cpan-testers on an old solaris as well... > > Perhaps you should write a patch for the module yourself;
The error is probably not in the library, but in the test. The Perl source in 06_iconv.t is by default iso-8859-1, so as a result the ë below will be interpreted as latin-1, not UTF-8. my $XMLCHK = qq|<?xml version="1.0" encoding="UTF-8"?>\n<root><enc>1 eë</enc></root>\n|; As a result, the variable $XMLCHK having the utf8 flag OFF, while $str_res is a serialization of the DOM object and as such has the utf8 flag ON. Trying to compare a utf8 string with a latin-1 string causes the warning "Wide character in print at /usr/local/share/perl/5.8.7/Test/Builder.pm line 1199.", and as a result, the test fails. By replacing the dubious "ë" with a guaranteed Unicode char solves the problem: my $XMLCHK = qq|<?xml version="1.0" encoding="UTF-8"?>\n<root><enc>1 e\x{263A}</enc></root>\n|; my $dom = $tool->complex2Dom( data => [ root => [ enc => "1 e\x{263A}" ] ] );
From: SINISTER [...] cpan.org
Due to the arrival of Perl 5.8.x (and the good Encode modules) I have stripped out all Text::Iconv related code resulting in something I dare call a 1.00 version. It is available on CPAN now.