From: Thomas Roessler Date: Tue, 4 Mar 2003 09:51:07 +0000 (+0000) Subject: Unset UseSTD3ASCIIRules, and set AllowUnassigned. (Just reading X-Git-Tag: mutt-1-5-4-rel~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=044ac29dc1f80a555a70c419921dd4f0253f6177;p=mutt Unset UseSTD3ASCIIRules, and set AllowUnassigned. (Just reading some standards.) --- diff --git a/mutt_idna.c b/mutt_idna.c index 2d3f4c4f..e4f69a5b 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -44,7 +44,7 @@ int mutt_idna_to_local (const char *in, char **out, int flags) *out = NULL; /* Is this the right function? Interesting effects with some bad identifiers! */ - if (idna_to_unicode_utf8_from_utf8 (in, out, 0, 1) != IDNA_SUCCESS) + if (idna_to_unicode_utf8_from_utf8 (in, out, 1, 0) != IDNA_SUCCESS) goto notrans; if (mutt_convert_string (out, "utf-8", Charset, M_ICONV_HOOK_TO) == -1) goto notrans; @@ -60,7 +60,7 @@ int mutt_idna_to_local (const char *in, char **out, int flags) char *tmp = safe_strdup (*out); if (mutt_convert_string (&tmp, Charset, "utf-8", M_ICONV_HOOK_FROM) == -1) irrev = 1; - if (!irrev && idna_to_ascii_from_utf8 (tmp, &t2, 0, 1) != IDNA_SUCCESS) + if (!irrev && idna_to_ascii_from_utf8 (tmp, &t2, 1, 0) != IDNA_SUCCESS) irrev = 1; if (!irrev && ascii_strcasecmp (t2, in)) { @@ -92,7 +92,7 @@ int mutt_local_to_idna (const char *in, char **out) if (mutt_convert_string (&tmp, Charset, "utf-8", M_ICONV_HOOK_FROM) == -1) rv = -1; - if (!rv && idna_to_ascii_from_utf8 (tmp, out, 0, 1) != IDNA_SUCCESS) + if (!rv && idna_to_ascii_from_utf8 (tmp, out, 1, 0) != IDNA_SUCCESS) rv = -2; FREE (&tmp); diff --git a/mutt_socket.c b/mutt_socket.c index 5c5524c9..187eb4ef 100644 --- a/mutt_socket.c +++ b/mutt_socket.c @@ -413,7 +413,7 @@ int raw_socket_open (CONNECTION* conn) snprintf (port, sizeof (port), "%d", conn->account.port); # ifdef HAVE_LIBIDN - if (idna_to_ascii_from_locale (conn->account.host, &host_idna, 0, 1) != IDNA_SUCCESS) + if (idna_to_ascii_from_locale (conn->account.host, &host_idna, 1, 0) != IDNA_SUCCESS) { mutt_error (_("Bad IDN \"%s\"."), conn->account.host); return -1; @@ -470,7 +470,7 @@ int raw_socket_open (CONNECTION* conn) sin.sin_family = AF_INET; # ifdef HAVE_LIBIDN - if (idna_to_ascii_from_locale (conn->account.host, &host_idna, 0, 1) != IDNA_SUCCESS) + if (idna_to_ascii_from_locale (conn->account.host, &host_idna, 1, 0) != IDNA_SUCCESS) { mutt_error (_("Bad IDN \"%s\"."), conn->account.host); return -1;