![]() |
|
Message-ID: <20250221022115.GD1827@brightrain.aerifal.cx> Date: Thu, 20 Feb 2025 21:21:15 -0500 From: Rich Felker <dalias@...c.org> To: Thorsten Glaser <tg@...bsd.de> Cc: musl@...ts.openwall.com Subject: Re: musl libc seems to use case-sensitive comparison for hostnames in /etc/hosts On Fri, Feb 21, 2025 at 02:52:04AM +0100, Thorsten Glaser wrote: > On Thu, 20 Feb 2025, Rich Felker wrote: > > >I recall something about it coming up in the context of adding IDN, > > You don’t need IDN for /etc/hosts or calls to the resolver, they > all use the xn--* punycode form. What IDN support means is that the resolver accepts the actual names, not just the punycode encoding of them. So that, like, you can type ping 納豆.w3.mag.keio.ac.jp and have it work without ping having to link some 3p library. The WIP proposal for implementing it canonicalizes both the input and the entries in the hosts file to punycode before comparison so that it works consistently regardless of whether you have unicode literals or punycode in your hosts file. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.