mirror of
https://github.com/mirror/wget.git
synced 2025-01-27 21:00:31 +08:00
* src/iri.c: Use TR46 non-transitional for toASCII conversion
This commit is contained in:
parent
0ab3d92c85
commit
6de24fe3c0
@ -264,7 +264,7 @@ idn_encode (const struct iri *i, const char *host)
|
||||
|
||||
#if IDN2_VERSION_NUMBER >= 0x00140000
|
||||
/* IDN2_TRANSITIONAL implies input NFC encoding */
|
||||
if ((ret = idn2_lookup_u8 (src, (uint8_t **) &ascii_encoded, IDN2_TRANSITIONAL)) != IDN2_OK)
|
||||
if ((ret = idn2_lookup_u8 ((uint8_t *) src, (uint8_t **) &ascii_encoded, IDN2_NONTRANSITIONAL)) != IDN2_OK)
|
||||
{
|
||||
logprintf (LOG_VERBOSE, _("idn_encode failed (%d): %s\n"), ret,
|
||||
quote (idn2_strerror (ret)));
|
||||
|
Loading…
Reference in New Issue
Block a user