From 6de24fe3c089181c8a6f7f436269dbc7e49d01ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Fri, 13 Jan 2017 15:53:03 +0100 Subject: [PATCH] * src/iri.c: Use TR46 non-transitional for toASCII conversion --- src/iri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iri.c b/src/iri.c index 6793d0b6..b7328d44 100644 --- a/src/iri.c +++ b/src/iri.c @@ -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)));