[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3 failed tests for libidn2-2.1.1
From: |
Tim Rühsen |
Subject: |
Re: 3 failed tests for libidn2-2.1.1 |
Date: |
Mon, 13 May 2019 13:41:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 5/13/19 1:10 PM, Dennis Clarke wrote:
> On 5/13/19 6:12 AM, Tim Rühsen wrote:
>> I meant
>>
>
>
> beta$ diff -c tests/test-lookup.c.orig tests/test-lookup.c
> *** tests/test-lookup.c.orig Sat Jan 26 10:44:20 2019
> --- tests/test-lookup.c Mon May 13 10:57:18 2019
> ***************
> *** 862,868 ****
>
> static int _scan_file(const char *fname, int(*scan)(char *))
> {
> ! FILE *fp = fopen(fname, "r");
> char *buf = NULL, *linep;
> size_t bufsize = 0;
> ssize_t buflen;
> --- 862,868 ----
>
> static int _scan_file(const char *fname, int(*scan)(char *))
> {
> ! FILE *fp = fopen(fname, "rb");
> char *buf = NULL, *linep;
> size_t bufsize = 0;
> ssize_t buflen;
> beta$
>
>
> .
> .
> .
> gmake[4]: Entering directory
> '/usr/local/build/libidn2-2.1.1a_SunOS5.10_sparc64vii+.003/tests'
> PASS: test-punycode
> FAIL: test-lookup
> PASS: test-register
> PASS: test-strerror
> PASS: test-tounicode
>
> ============================================================================
>
> Testsuite summary for libidn2 2.1.1
> ============================================================================
>
> # TOTAL: 5
> # PASS: 4
> # SKIP: 0
> # XFAIL: 0
> # FAIL: 1
> # XPASS: 0
> # ERROR: 0
> ============================================================================
Same amount of failures in tests/test-lookup.log as before ?
> beta$ src/.libs/idn2 -d xn--fze90fu1iw8r.1 | od -t x1
> idn2: decode: string encoding error
> 0000000
> beta$
This IDN2_ENCODING_ERROR, which means that utf-8 to ucs4 encoding fails
for some reason. Looks like there is a problem with the system iconv()
function.
I am now on Solaris 10 / SPARC, compiled libidn2 with Solaris' 'cc' and
I also see some weird failures (but only two in test-lookup.log):
converting a plain ASCII string "abc" to UTF-8 fails.
Using gcc and the GNU libiconv doesn't give me an error.
Maybe there is a Solaris developer over here to dig deeper and to
develop a work-around. But since each Solaris version seems to have it's
own issues, I don't see much value in it.
Sorry for that, but not sure how I can help you.
Regards, Tim
signature.asc
Description: OpenPGP digital signature
- Re: 3 failed tests for libidn2-2.1.1, (continued)
- Re: 3 failed tests for libidn2-2.1.1, Tim Rühsen, 2019/05/12
- Re: 3 failed tests for libidn2-2.1.1, Dennis Clarke, 2019/05/12
- Re: 3 failed tests for libidn2-2.1.1, Tim Rühsen, 2019/05/12
- Re: 3 failed tests for libidn2-2.1.1, Dennis Clarke, 2019/05/12
- Re: 3 failed tests for libidn2-2.1.1, Tim Rühsen, 2019/05/13
- Re: 3 failed tests for libidn2-2.1.1, Dennis Clarke, 2019/05/13
- Re: 3 failed tests for libidn2-2.1.1, Tim Rühsen, 2019/05/13
- Re: 3 failed tests for libidn2-2.1.1, Dennis Clarke, 2019/05/13
- Re: 3 failed tests for libidn2-2.1.1, Tim Rühsen, 2019/05/13
- Re: 3 failed tests for libidn2-2.1.1, Dennis Clarke, 2019/05/13
- Re: 3 failed tests for libidn2-2.1.1,
Tim Rühsen <=
- Re: 3 failed tests for libidn2-2.1.1, Dennis Clarke, 2019/05/13