diff options
author | 2016-10-17 17:44:47 +0000 | |
---|---|---|
committer | 2016-10-17 17:44:47 +0000 | |
commit | 17e256c97dde795304ad01bfb1d23344214d53d4 (patch) | |
tree | f213452c46b099506659fc527f64d1f6af047d0f /lib/libc/stdlib/labs.c | |
parent | Make sure the cursor goes to the first byte of a UTF-8 character (diff) | |
download | wireguard-openbsd-17e256c97dde795304ad01bfb1d23344214d53d4.tar.xz wireguard-openbsd-17e256c97dde795304ad01bfb1d23344214d53d4.zip |
No need to inspect LC_CTYPE:
* It was only used in vi input mode.
* No functional change in case of set -o vi-show8.
* No functional change if LC_CTYPE is set to UTF-8.
* More robust for the default of LC_CTYPE=C on a UTF-8 xterm.
Behaviour changes for the combination LC_CTYPE=C with set +o vi-show8
on non-UTF-8 terminals, but that combination is useless and dangerous
with or without this patch. If you want to edit individual raw non-ASCII
non-UTF-8 bytes on the shell command line, always use set -o vi-show8.
(Besides, i doubt that you actually want to do that; better use a real
hex editor in the first place.)
OK czarkoff@.
Diffstat (limited to 'lib/libc/stdlib/labs.c')
0 files changed, 0 insertions, 0 deletions