From e2494538aa50da3dd2bea68e60e6f911d92327f0 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Sat, 28 Mar 2009 22:37:22 +0100 Subject: [PATCH] Make IDNA code more readable --- ChangeLog | 14 ++++++++++++++ mutt_idna.c | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 29a3b68a..73cb77da 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 40b207a2..f720116a 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); -- 2.40.0