diff options
author | 2019-03-12 11:59:24 +0000 | |
---|---|---|
committer | 2019-03-12 11:59:24 +0000 | |
commit | 7c92ba0ff878243e2dd07f13ac954dca496f722c (patch) | |
tree | fcb58e5db2107a41bd2be87f968f77355018c74e /usr.bin/tmux/window-buffer.c | |
parent | Merge copy/pasted code to export STP states via ioctl into a function. (diff) | |
download | wireguard-openbsd-7c92ba0ff878243e2dd07f13ac954dca496f722c.tar.xz wireguard-openbsd-7c92ba0ff878243e2dd07f13ac954dca496f722c.zip |
Clean up UTF-8 handling in backc():
Use wchar_t instead of LWCHAR and mbtowc(3) instead of step_char().
Play it safe and handle all error cases, even in the arguably unlikely
case that linebuf[] contains UTF-8 encoding errors.
Reset mbtowc(3) internal state after failure for portability,
also in one place where mbtowc(3) was already introduced earlier.
OK nicm@
Diffstat (limited to 'usr.bin/tmux/window-buffer.c')
0 files changed, 0 insertions, 0 deletions