Hi Dennis,

there is something going on that I do not understand.

The code in libidn2 checks some combinations of input flags, the code is
pretty simple. In two cases the check says OK instead of the expected
error. I don't see any endianess issues there, but maybe I am blind.

The following combinations of flags should give an error:
IDN2_NONTRANSITIONAL|IDN2_TRANSITIONAL
IDN2_NONTRANSITIONAL|IDN2_NO_TR46
IDN2_TRANSITIONAL|IDN2_NO_TR46
IDN2_TRANSITIONAL|IDN2_NONTRANSITIONAL|IDN2_NO_TR46

But your log shows #2 and #3 return OK (expected rc -209 got rc 0).

The code is
if (((*flags) & IDN2_TRANSITIONAL) && ((*flags) & IDN2_NONTRANSITIONAL))
  return IDN2_INVALID_FLAGS;

if (((*flags) & (IDN2_TRANSITIONAL|IDN2_NONTRANSITIONAL)) && ((*flags) &
IDN2_NO_TR46))
  return IDN2_INVALID_FLAGS;

Where/how did you get the sources (git or tarball) ?
Did you 'make clean' before 'make && make check' ?
What is the ouput of 'ldd tests/test-lookup' ?

Do you have a Dockerfile so that I can reproduce locally (or anything
else to reproduce) ?

Regards, Tim

On 06/27/2018 04:03 PM, Dennis Clarke wrote:
> 
> Just the usual process where configure looks great, compile looks
> equally clean and yet :
> 
> PASS: test-punycode
> FAIL: test-lookup
> PASS: test-register
> PASS: test-strerror
> PASS: test-tounicode
> ============================================================================
> 
> Testsuite summary for libidn2 2.0.5
> ============================================================================
> 
> # TOTAL: 5
> # PASS:  4
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> ============================================================================
> 
> 
> See attached libidn2-2.0.5_4.17.2-genunix_ppc64_test-suite.log
> 
> Exact same test fails on Solaris 10 sparc with Oracle studio 12.6
> compilers.
> 
> Dennis
> 
> 
> _______________________________________________
> Help-libidn mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/help-libidn
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Help-libidn mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-libidn

Reply via email to