]> granicus.if.org Git - mutt/commitdiff
Unset UseSTD3ASCIIRules, and set AllowUnassigned. (Just reading
authorThomas Roessler <roessler@does-not-exist.org>
Tue, 4 Mar 2003 09:51:07 +0000 (09:51 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Tue, 4 Mar 2003 09:51:07 +0000 (09:51 +0000)
some standards.)

mutt_idna.c
mutt_socket.c

index 2d3f4c4f8f0619502e644b639c70bb683e11b8e5..e4f69a5bcec2406571059f9983cf7abb1655793f 100644 (file)
@@ -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);
index 5c5524c961f95a3cfaf79c27ff71c85ee50518e3..187eb4ef190a70f3b71bca5fdad3eead0e9d3a9b 100644 (file)
@@ -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;