Use a little bit more straight-forward detection
This commit is contained in:
parent
ebc482b8fd
commit
ce3b2c80a1
|
@ -101,8 +101,8 @@ struct curses_event
|
||||||
static gboolean
|
static gboolean
|
||||||
is_character_in_locale (wchar_t c)
|
is_character_in_locale (wchar_t c)
|
||||||
{
|
{
|
||||||
cchar_t cch;
|
wchar_t s[] = { c, 0 };
|
||||||
return setcchar (&cch, &c, A_NORMAL, 0, NULL) != ERR;
|
return wcstombs (NULL, s, 0) != (size_t) -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Translate key codes above KEY_MAX returned from ncurses into something
|
/** Translate key codes above KEY_MAX returned from ncurses into something
|
||||||
|
|
Loading…
Reference in New Issue