summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sdtui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sdtui.c b/src/sdtui.c
index 0c03ff5..285cd9c 100644
--- a/src/sdtui.c
+++ b/src/sdtui.c
@@ -101,8 +101,8 @@ struct curses_event
static gboolean
is_character_in_locale (wchar_t c)
{
- cchar_t cch;
- return setcchar (&cch, &c, A_NORMAL, 0, NULL) != ERR;
+ wchar_t s[] = { c, 0 };
+ return wcstombs (NULL, s, 0) != (size_t) -1;
}
/** Translate key codes above KEY_MAX returned from ncurses into something