From 496e0df604efcc9b4d3c8878c7563f01cb0f44ea Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 29 Dec 2016 15:55:45 +0000 Subject: [PATCH] I18N: avoid trying to downconvert all-ascii domain names. With the IDNA-2008 handling downconversion results in lowercasing; so avoid doing that if possible. --- src/src/utf8.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/src/utf8.c b/src/src/utf8.c index be5bcb078..e8690fc39 100644 --- a/src/src/utf8.c +++ b/src/src/utf8.c @@ -52,6 +52,10 @@ uschar * s1, * s; int rc; #ifdef SUPPORT_I18N_2008 +/* Avoid lowercasing plain-ascii domains */ +if (!string_is_utf8(utf8)) + return string_copy(utf8); + /* Only lowercase is accepted by the library call. A pity since we lose any mixed-case annotation. This does not really matter for a domain. */ { -- 2.25.1