From 43e1514520147a6518378c9440a388b2dd74df93 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 24 Apr 2006 18:46:06 +0000 Subject: [PATCH] * Print '?' for Unicode characters in the ANSI export. We'll decide later whether we want plain ASCII, UTF-8, or CP437. --- cucul/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cucul/export.c b/cucul/export.c index c6c7eae..f51d75c 100644 --- a/cucul/export.c +++ b/cucul/export.c @@ -222,7 +222,7 @@ static void export_ansi(cucul_canvas_t *cv, cucul_buffer_t *ex) fg - 8, bg - 8, fg - 8, bg - 8); } - *cur++ = ch & 0x7f; + *cur++ = (ch >= 0x20 && ch < 0x7f) ? ch : '?'; prevfg = fg; prevbg = bg;