diff options
author | 2017-01-18 10:08:05 +0000 | |
---|---|---|
committer | 2017-01-18 10:08:05 +0000 | |
commit | f50390e0084e3c84e69e2679c4278747c3fca931 (patch) | |
tree | 1f0a2829cb121753f22dfd74b6e7c897fe580e26 /usr.bin/tmux/tmux.h | |
parent | Run arguments through vis() as well when printing them. (diff) | |
download | wireguard-openbsd-f50390e0084e3c84e69e2679c4278747c3fca931.tar.xz wireguard-openbsd-f50390e0084e3c84e69e2679c4278747c3fca931.zip |
Plain stravis() because it will mangle UTF-8 characters, so add
utf8_stravis() which calls our existing utf8_strvis() and use it instead
Diffstat (limited to 'usr.bin/tmux/tmux.h')
-rw-r--r-- | usr.bin/tmux/tmux.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index ea7f0360190..143c8e41793 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.700 2017/01/16 14:52:25 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.701 2017/01/18 10:08:05 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -2295,6 +2295,7 @@ enum utf8_state utf8_append(struct utf8_data *, u_char); enum utf8_state utf8_combine(const struct utf8_data *, wchar_t *); enum utf8_state utf8_split(wchar_t, struct utf8_data *); int utf8_strvis(char *, const char *, size_t, int); +int utf8_stravis(char **, const char *, int); char *utf8_sanitize(const char *); size_t utf8_strlen(const struct utf8_data *); u_int utf8_strwidth(const struct utf8_data *, ssize_t); |