diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-04-20 13:23:39 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2023-04-20 13:23:39 +0300 |
commit | 5470fc3a63ff1cb15d7d5128e5c9d682dda28341 (patch) | |
tree | 4b83027723d9282654ee1df31d1caf5a0baf074e /m4 | |
parent | 54850d4c762f1c44f2dad34b0d01b33a4d881e7f (diff) | |
download | sciteco-5470fc3a63ff1cb15d7d5128e5c9d682dda28341.tar.gz |
Curses: do not allow typing any non-ASCII characters - fixes crashes on PDCurses/WinGUI
* we can neither display, nor parse Unicode characters properly, so this does not worsen anything
* makes it harder to confuse the parser as long as we do not support Unicode.
* behaves like on Gtk: pressing a non-ASCII char will simply be ignored
* Most importantly, this fixes crashes on PDCurses/WinGUI.
It apparently couldn't handle the negative integers that resulted from passing a value >= 0x80 <= 0xFF
into gchar (which is a signed integer).
Changing everything into guchar is not worth the effort - we need full Unicode support anyway.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions