From 3edf950fc2a06a1229297fecd3acffdc0a5ef608 Mon Sep 17 00:00:00 2001 From: djcb Date: Sat, 15 Feb 2014 13:20:17 +0200 Subject: [PATCH] * mu_str_asciify_in_place: fix test to decide whether to replace --- lib/mu-str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mu-str.c b/lib/mu-str.c index a22c8b6f..11801be9 100644 --- a/lib/mu-str.c +++ b/lib/mu-str.c @@ -839,7 +839,7 @@ mu_str_asciify_in_place (char *buf) g_return_val_if_fail (buf, NULL); for (c = buf; c && *c; ++c) { - if (!isascii(*c) || *c < ' ') + if (!isprint(*c) && !isspace (*c)) *c = '.'; }