diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2003-03-04 09:51:07 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2003-03-04 09:51:07 +0000 |
commit | 044ac29dc1f80a555a70c419921dd4f0253f6177 (patch) | |
tree | 59ab8a8803ad14324fc4734e8c396ab363ed0694 /mutt_idna.c | |
parent | 861a9f8e401438ed137a767574c6a70561c136a8 (diff) |
Unset UseSTD3ASCIIRules, and set AllowUnassigned. (Just reading
some standards.)
Diffstat (limited to 'mutt_idna.c')
-rw-r--r-- | mutt_idna.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |