X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/9427e87923288dfe6fdf80011f77bf4a135898ac..a5ffa9b475a426bc73366db01f7cc92a3811bc3a:/src/src/utf8.c diff --git a/src/src/utf8.c b/src/src/utf8.c index be5bcb078..7b7b88f66 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. */ { @@ -198,7 +202,7 @@ return NULL; /* Whole address conversion. The *err string pointer should be null before the call. -Return NULL on oeeror, with (optional) errstring pointer filled in +Return NULL on error, with (optional) errstring pointer filled in */ uschar *