summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/src/utf8.c4
1 files changed, 4 insertions, 0 deletions
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. */
{