[Bug 1971715] Re: 22.04 idn -a domain.com idn: could not convert from ASCII to UTF-8
Nikita Radchenko
1971715 at bugs.launchpad.net
Mon Jun 26 08:19:41 UTC 2023
Hi,
I confirm that the patch fixes input encoding detection issue for me
(22.04.2 LTS)
Current package:
free1 : ~ [0] # echo $LC_ALL
en_US.UTF-8
free1 : ~ [0] # dpkg -l idn libidn12
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=============================================================
ii idn 1.38-4build1 amd64 Command line interface to GNU Libidn
ii libidn12:amd64 1.38-4build1 amd64 GNU Libidn library, implementation of IETF IDN specifications
free1 : ~ [0] # idn xxx-tést.eu
idn: could not convert from ASCII to UTF-8
free1 : ~ [1] # idn -u xxx-tést.eu
idn: could not convert from ASCII to UTF-8
free1 : ~ [1] # idn -a xxx-tést.eu
idn: could not convert from ASCII to UTF-8
free1 : ~ [1] # echo ü | idn
idn: could not convert from ASCII to UTF-8
free1 : ~ [1] #
Package from jammy-proposed:
free1 : ~ [130] # echo $LC_ALL
en_US.UTF-8
free1 : ~ [0] # dpkg -l idn libidn12
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-=============-============-=============================================================
ii idn 1.38-4build1 amd64 Command line interface to GNU Libidn
ii libidn12:amd64 1.38-4ubuntu1 amd64 GNU Libidn library, implementation of IETF IDN specifications
free1 : ~ [0] # idn xxx-tést.eu
xn--xxx-tst-fya.eu
free1 : ~ [0] # idn -u xxx-tést.eu
xxx-tést.eu
free1 : ~ [0] # idn -a xxx-tést.eu
xn--xxx-tst-fya.eu
free1 : ~ [0] # echo ü | idn
xn--tda
free1 : ~ [0] #
No problems after upgrade so far.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to libidn in Ubuntu.
https://bugs.launchpad.net/bugs/1971715
Title:
22.04 idn -a domain.com idn: could not convert from ASCII to UTF-8
Status in libidn package in Ubuntu:
Fix Released
Status in libidn source package in Jammy:
Fix Committed
Status in libidn source package in Kinetic:
Fix Released
Bug description:
[ Impact ]
idn cannot handle non-ASCII characters
[ Test Plan ]
Existing state in 22.04:
$ echo ü | idn
idn: could not convert from ASCII to UTF-8
Fixed output:
$ echo ü | idn
xn--tda
[ Where problems could occur ]
The patch enables an extra autotools features, so the most likely
problem is a build failure. Currently non-ASCII characters are
entirely unhandled, so there's no risk of regression there, but this
could potentially turn clean failures into crashes or incorrect
output.
[Original report]
On Ubuntu 22.04 Jammy:
idn -a "xxx-tést.eu"
idn: could not convert from ASCII to UTF-8
And
idn -u "xn--xxx-tst-fya.eu"
idn: could not convert from UTF-8 to ASCII
Expected:
Successfully conversion from ASCII to UTF-8
Ubuntu 20.04 / 18.04 it works fine
Also with idn2 from UTF-8 to ASCII works as expected how ever support
lacks from ASCII to UTF-8
Description: Ubuntu 22.04 LTS
Release: 22.04
root at test:~# echo $LC_ALL
C.UTF-8
root at test:~# apt-cache policy idn
idn:
Installed: 1.38-4build1
Candidate: 1.38-4build1
Version table:
*** 1.38-4build1 500
500 https://mirror.hetzner.com/ubuntu/packages jammy/universe amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libidn/+bug/1971715/+subscriptions
More information about the foundations-bugs
mailing list