summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/window-buffer.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-03-12 11:59:24 +0000
committerschwarze <schwarze@openbsd.org>2019-03-12 11:59:24 +0000
commit7c92ba0ff878243e2dd07f13ac954dca496f722c (patch)
treefcb58e5db2107a41bd2be87f968f77355018c74e /usr.bin/tmux/window-buffer.c
parentMerge copy/pasted code to export STP states via ioctl into a function. (diff)
downloadwireguard-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