-
Michał Kępień authored
idn_ace_to_locale() may return a string longer than MAXDLEN because it is using the current locale's character encoding. Rather then imposing an arbitrary limit on the length of the string that function can return, make it pass the string prepared by libidn2 back to the caller verbatim, making the latter responsible for freeing that string. In conjunction with the fact that libidn2 errors are considered fatal, this makes returning an isc_result_t from idn_ace_to_locale() unnecessary. Do not process success cases in conditional branches for improved consistency with the rest of BIND source code. Add a comment explaining the purpose of idn_ace_to_locale(). Rename that function's parameters to match common BIND naming pattern.
5106a18e