diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-05-09 10:36:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2019-05-09 10:36:00 +0000 |
commit | ec39ce910cbd28208609bd58c475f1d25dd47cce (patch) | |
tree | 552e2c51eb9a4b1eaf1394ea3671a228d3f22bef /usr.bin/usbhidaction | |
parent | c063612ebf75706f33c52380b19b75dc8890d3d2 (diff) |
UTF-8 cleanup in the function pshift().
Use the standard functions mbtowc(3), wcwidth(3), iscntrl(3) instead
of bad functions like get_wchar(), utf_len(), is_wide_char(),
is_composing_char(), is_combining_char(), control_char().
If only half of a double-width character is shifted off screen, do not
inspect anything following it because that clearly remains on-screen.
Improve and add comments.
OK millert@
Diffstat (limited to 'usr.bin/usbhidaction')
0 files changed, 0 insertions, 0 deletions