From 4c6b6814abfc9c022c6ea8d1e23097c2a774fde5 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Wed, 28 Aug 2024 12:59:05 +0200 Subject: input and displaying of Unicode characters is now possible (refs #5) * All non-ASCII characters are inserted as Unicode. On Curses, this also requires a properly set up locale. * We still do not need any widechar Curses, as waddch() handles multibyte characters on ncurses. We will see whether there is any Curses variant that strictly requires wadd_wch(). If this will be an exception, we might keep both widechar and non-widechar support. * By convention gsize is used exclusively for byte sizes. Character offsets or lengths use int or long. --- src/sciteco.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sciteco.h') diff --git a/src/sciteco.h b/src/sciteco.h index 55ffd6c..7f420e8 100644 --- a/src/sciteco.h +++ b/src/sciteco.h @@ -69,7 +69,7 @@ teco_is_failure(teco_bool_t x) #endif /** TRUE if C is a control character */ -#define TECO_IS_CTL(C) ((C) < ' ') +#define TECO_IS_CTL(C) ((guchar)(C) < ' ') /** ASCII character to echo control character C */ #define TECO_CTL_ECHO(C) ((C) | 0x40) /** -- cgit v1.2.3