From: Thomas Roessler Date: Sat, 28 Mar 2009 21:37:22 +0000 (+0100) Subject: Make IDNA code more readable X-Git-Tag: neomutt-20160307~701^2~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cced24b1adafa722e575e906536009361f00a09;p=neomutt Make IDNA code more readable --- diff --git a/ChangeLog b/ChangeLog index 29a3b68a3..73cb77daf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2009-03-28 16:11 +0100 Rocco Rutte (77cfe8016930) + + * doc/manual.xml.head: Manual: Add section roughly explaining config + option types + +2009-03-28 16:01 +0100 Rocco Rutte (afcfd08c5319) + + * ChangeLog, doc/makedoc.c: makedoc: make output slightly more + readable + + Add + using HTML which save lots of vertical space. Also, drop + the newline before to save some space. + 2009-03-27 18:02 +0100 Rocco Rutte (a06a2a4c5ebc) * rfc3676.c: f=f: Fix debug messages diff --git a/mutt_idna.c b/mutt_idna.c index 40b207a2b..f720116af 100644 --- a/mutt_idna.c +++ b/mutt_idna.c @@ -62,7 +62,7 @@ static int mutt_idna_to_local (const char *in, char **out, int flags) goto notrans; /* Is this the right function? Interesting effects with some bad identifiers! */ - if (idna_to_unicode_8z8z (in, out, 1) != IDNA_SUCCESS) + if (idna_to_unicode_8z8z (in, out, IDNA_ALLOW_UNASSIGNED) != IDNA_SUCCESS) goto notrans; /* we don't want charset-hook effects, so we set flags to 0 */ @@ -83,7 +83,7 @@ static int mutt_idna_to_local (const char *in, char **out, int flags) /* we don't want charset-hook effects, so we set flags to 0 */ if (mutt_convert_string (&tmp, Charset, "utf-8", 0) == -1) irrev = 1; - if (!irrev && idna_to_ascii_8z (tmp, &t2, 1) != IDNA_SUCCESS) + if (!irrev && idna_to_ascii_8z (tmp, &t2, IDNA_ALLOW_UNASSIGNED) != IDNA_SUCCESS) irrev = 1; if (!irrev && ascii_strcasecmp (t2, in)) { @@ -122,7 +122,7 @@ static int mutt_local_to_idna (const char *in, char **out) /* we don't want charset-hook effects, so we set flags to 0 */ if (mutt_convert_string (&tmp, Charset, "utf-8", 0) == -1) rv = -1; - if (!rv && idna_to_ascii_8z (tmp, out, 1) != IDNA_SUCCESS) + if (!rv && idna_to_ascii_8z (tmp, out, IDNA_ALLOW_UNASSIGNED) != IDNA_SUCCESS) rv = -2; FREE (&tmp);