mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Do not set IDN2_NFC_INPUT explicitly
IDN2_NFC_INPUT is always set implicitly by idn2_to_ascii_lz(), so there is no need to set it explicitly.
This commit is contained in:
parent
b896fc4972
commit
bf6efbc9a9
@ -4254,8 +4254,7 @@ idn_locale_to_ace(const char *src, char *dst, size_t dstlen) {
|
|||||||
* We trust libidn2 to return an error if 'src' is too large to be a
|
* We trust libidn2 to return an error if 'src' is too large to be a
|
||||||
* valid domain name.
|
* valid domain name.
|
||||||
*/
|
*/
|
||||||
res = idn2_to_ascii_lz(src, &ascii_src,
|
res = idn2_to_ascii_lz(src, &ascii_src, IDN2_NONTRANSITIONAL);
|
||||||
IDN2_NFC_INPUT | IDN2_NONTRANSITIONAL);
|
|
||||||
if (res != IDN2_OK) {
|
if (res != IDN2_OK) {
|
||||||
fatal("'%s' is not a legal IDNA2008 name (%s), use +noidnin",
|
fatal("'%s' is not a legal IDNA2008 name (%s), use +noidnin",
|
||||||
src, idn2_strerror(res));
|
src, idn2_strerror(res));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user