Skip Menu |

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

Report information
The Basics
Id: 29390
Status: open
Priority: 0/
Queue: Text-Unaccent

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

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



Subject: test failure on x86_64
On mandriva linux x86_64, with perl 5.8.8, and gcc 4.2.2: [guillomovitch@seggie Text-Unaccent-1.08]$ perl -I blib/lib -I blib/arch/ t/unac.t 1..4 # Running under perl version 5.008008 for linux # Current time local: Sun Sep 16 19:13:20 2007 # Current time GMT: Sun Sep 16 17:13:20 2007 # Using Test.pm version 1.25 not ok 1 # Test 1 got: <UNDEF> (t/unac.t at line 24) # Expected: "ete" (removing accents from �t� (1)) # t/unac.t line 24 is: ok(unac_string("ISO-8859-1", "�t�"), "ete", "removing accents from �t� (1)"); not ok 2 # Test 2 got: <UNDEF> (t/unac.t at line 25) # Expected: "ete" (removing accents from �t� (2)) # t/unac.t line 25 is: ok(unac_string("ISO-8859-1", "�t�"), "ete", "removing accents from �t� (2)"); ok 3 ok 4 Compilation gives some warnings if that matters: cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC "-I/usr/lib/perl5/5.8.8/x86_64-linux/CORE" -DHAVE_CONFIG_H Unaccent.c Unaccent.xs: In function ‘XS_Text__Unaccent_unac_string’: Unaccent.xs:71: attention : passing argument 5 of ‘unac_string’ from incompatible pointer type Unaccent.xs: In function ‘XS_Text__Unaccent_unac_string_utf16’: Unaccent.xs:88: attention : passing argument 4 of ‘unac_string_utf16’ from incompatible pointer type
Subject: Re: [rt.cpan.org #29390] test failure on x86_64
Date: Sun, 16 Sep 2007 21:01:31 +0200
To: bug-Text-Unaccent [...] rt.cpan.org
From: Loic Dachary <loic [...] dachary.org>
Ho my :-) Could someone please help me get back in CPAN ? Five years since I logged in... Good to hear from it. " via RT" <bug-Text-Unaccent@rt.cpan.org> writes: Show quoted text
> Sun Sep 16 13:15:28 2007: Request 29390 was acted upon. > Transaction: Ticket created by GROUSSE > Queue: Text-Unaccent > Subject: test failure on x86_64 > Broken in: (no value) > Severity: Critical > Owner: Nobody > Requestors: GROUSSE@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=29390 > > > > On mandriva linux x86_64, with perl 5.8.8, and gcc 4.2.2: > [guillomovitch@seggie Text-Unaccent-1.08]$ perl -I blib/lib -I > blib/arch/ t/unac.t > 1..4 > # Running under perl version 5.008008 for linux > # Current time local: Sun Sep 16 19:13:20 2007 > # Current time GMT: Sun Sep 16 17:13:20 2007 > # Using Test.pm version 1.25 > not ok 1 > # Test 1 got: <UNDEF> (t/unac.t at line 24) > # Expected: "ete" (removing accents from �t� (1)) > # t/unac.t line 24 is: ok(unac_string("ISO-8859-1", "�t�"), "ete", > "removing accents from �t� (1)"); > not ok 2 > # Test 2 got: <UNDEF> (t/unac.t at line 25) > # Expected: "ete" (removing accents from �t� (2)) > # t/unac.t line 25 is: ok(unac_string("ISO-8859-1", "�t�"), "ete", > "removing accents from �t� (2)"); > ok 3 > ok 4 > > Compilation gives some warnings if that matters: > cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -I/usr/include/gdbm -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions > -DVERSION=\"1.08\" -DXS_VERSION=\"1.08\" -fPIC > "-I/usr/lib/perl5/5.8.8/x86_64-linux/CORE" -DHAVE_CONFIG_H Unaccent.c > Unaccent.xs: In function ‘XS_Text__Unaccent_unac_string’: > Unaccent.xs:71: attention : passing argument 5 of ‘unac_string’ from > incompatible pointer type > Unaccent.xs: In function ‘XS_Text__Unaccent_unac_string_utf16’: > Unaccent.xs:88: attention : passing argument 4 of ‘unac_string_utf16’ > from incompatible pointer type > > >
-- +33 1 76 60 72 81 Loic Dachary mailto:loic@dachary.org http://dachary.org/loic/gpg.txt sip:loic@dachary.org Latitude: 48.86962325498033 Longitude: 2.3623046278953552
Le Dim. Sep. 16 15:02:04 2007, loic@dachary.org a écrit : Show quoted text
> > Ho my :-) > > Could someone please help me get back in CPAN ? > Five years since I logged in...
You may start from http://pause.perl.org/pause/query?ACTION=mailpw Your CPAN id is ldachary apparently. if you need more help, join #perlfr on irc.mongueurs.net.
From: GROUSSE [...] cpan.org
Le Dim. Sep. 16 15:06:14 2007, GROUSSE a écrit : Show quoted text
> Le Dim. Sep. 16 15:02:04 2007, loic@dachary.org a écrit :
> > > > Ho my :-) > > > > Could someone please help me get back in CPAN ? > > Five years since I logged in...
> You may start from http://pause.perl.org/pause/query?ACTION=mailpw > Your CPAN id is ldachary apparently. if you need more help, join #perlfr > on irc.mongueurs.net.
Here is a patch fixing this issue, thanks to Olivier Thauvin (nanardon@nanardon.zarb.org)
Index: unac.c =================================================================== --- unac.c +++ unac.c 2007-11-25 03:04:54.000000000 +0100 @@ -13881,9 +13881,9 @@ *out_lengthp = 0; } else { char* utf16 = 0; - int utf16_length = 0; + size_t utf16_length = 0; char* utf16_unaccented = 0; - int utf16_unaccented_length = 0; + size_t utf16_unaccented_length = 0; if(convert(charset, utf16be(), in, in_length, &utf16, &utf16_length) < 0) { return -1;