<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3298: Mutt's way to get the FQDN is broken



Hi,

* Derek Martin wrote:
> I would be willing to hack up a patch for this, if someone can explain
> the rammifications of IDN here.  getaddrinfo() can handle IDN if you
> use the AI_IDN flag.  Also, I'd like to solicit comments about whether
> the code should try to use getaddrinfo(), gethostbyaddr(), or both
> (i.e. try to determine if one is available and fall back to the other
> if not).

When setting $hostname, I think we should require it to be
us-ascii. Otherwise, there're probably many more places to touch.

If gethostbyfoo() routines are deprecated, I think we should go with
their replacements in the first place and provide compatibility
routines, i.e. hack our own getaddrinfo() using the older versions. This
has the advantage that it's just AC_REPLACE_FUNCS and another file. It
wouldn't clutter the code with #ifdef/#endif orgies.

Rocco

Attachment: pgpj8b3dDtW38.pgp
Description: PGP signature