Tim Rühsen <tim.rueh...@gmx.de> writes:

> On 20.02.22 08:44, Simon Josefsson via Discussion list for GNU
> Internationalized Domain Name library (Libidn) wrote:
>> Bogdan <bogdan.pylypenko...@gmail.com> writes:
>> 
>>> # I have a bug:
>>>
>>> $ echo "домен.рф" | idn
>>> idn: could not convert from ASCII to UTF-8
>> Could your platform be lacking nl_langinfo() perhaps?  What system
>> is
>> this, and could you show the output from your libidn ./configure run?
>
> This happens here on Debian unstable as well, while 'idn2' works as
> expected.
>
> $ echo "домен.рф" | idn2
> xn--d1acufc.xn--p1ai
>
> Either the error message from 'idn' is misleading or the way iconv()
> is called / handled is not correct.

Interesting -- I guess we really should add self-tests of the
command-line tool, not just the library.  I'm pretty sure the self-test
passes fine in Debian unstable, no?  But the command-line tool does some
special things wrt locale as well.

/Simon

Attachment: signature.asc
Description: PGP signature

  • bug... Bogdan
    • ... Discussion list for GNU Internationalized Domain Name library (Libidn)
      • ... Tim Rühsen
        • ... Discussion list for GNU Internationalized Domain Name library (Libidn)
      • ... Discussion list for GNU Internationalized Domain Name library (Libidn)

Reply via email to