Bug 127496 - idna_to_ascii_lz() from libidn >= 0.4.1 seems to have conversion problems
Summary: idna_to_ascii_lz() from libidn >= 0.4.1 seems to have conversion problems
Alias: None
Product: Fedora
Classification: Fedora
Component: libidn   
(Show other bugs)
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Joe Orton
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-07-08 22:19 UTC by Robert Scheck
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 0.5.1-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-07-09 13:54:16 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Robert Scheck 2004-07-08 22:19:59 UTC
Description of problem:
With libidn >= 0.4.1 I get the following (wrong!) behaviour, if I 
compile one of the example files (it seems to be the problem at 
all example files) provided with the devel package:

--- snipp ---
# gcc example3.c -o example3 -lidn
# ./example3
Input domain encoded as `ANSI_X3.4-1968': öko.de
Read string (length 6): f6 6b 6f 2e 64 65
ToASCII() failed... 9
--- snapp ---

But if I remove the current libidn and install libidn (+ devel) 
0.4.0, I get this (correct!) behaviour:

--- snipp ---
# gcc example3.c -o example3 -lidn
# ./example3
Input domain encoded as `ISO-8859-15': öko.de
Read string (length 6): f6 6b 6f 2e 64 65
ACE label (length 13): 'xn--ko-eka.de'
78 6e 2d 2d 6b 6f 2d 65 6b 61 2e 64 65
--- snapp ---

My locale was at _both_ _times_ "de_DE@euro" (ISO-8859-15). But UTF-8 
(Fedora default) didn't matter.

If I compile example3.c with installed libidn 0.5.0, uninstall it and
install libidn 0.4.0 and start the old binary again, it works. So the 
problem is (seen from my eyes) in one of the libidn libraries, the 
executable is linked against.

FYI: My build of libidn 0.4.0 was done using the older sources and 
changed version numbers in the spec file from 0.5.0 - so there are 
the same configure parameters and I also recompiled 0.5.0 myself, 
but it didn't change anything.

Version-Release number of selected component (if applicable):

How reproducible & Steps to Reproduce:
See above.

Actual results:
Non-working idna_to_ascii_lz()

Expected results:
Working idna_to_ascii_lz()

Additional info:
Joe, I think you'll be the default bug owner, so maybe you're able 
to trigger out (or even solve) the problem, but I also send this bug 
report to upstream, because it is a upstream bug and not Fedora or 
Red Hat even related. This bug is more or less only to have this bug
tracked down as a reference...

Comment 1 Robert Scheck 2004-07-09 10:27:44 UTC
Okay, I talked with Simon Josefsson and he said, that the example 
programs are still buggy. Libidn 0.5.1 will be released soon which 
contains fixes for the problems in the example files.

Comment 2 Robert Scheck 2004-07-09 13:41:41 UTC
Okay, libidn 0.5.1 was released 15 minutes ago and seems to fix the
issue. Could you please do the update of the package to Fedora 
Development and close this bug after it? Thank you very much :)

Comment 3 Joe Orton 2004-07-09 13:54:16 UTC
Thanks for chasing it up... 0.5.1-1 on the way through.

Note You need to log in before you can comment on or make changes to this bug.