diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-06-04 09:02:37 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2017-06-04 09:02:37 +0000 |
commit | 1e19e4992bacd93b3ad49d2ede105234949b3408 (patch) | |
tree | f16dc1ddf04104f14226ec4090bf7cf8f742a011 /usr.bin/tmux/tmux.h | |
parent | b51b06c97665d8f1eafbd2fee4d3d9b4a8811d13 (diff) |
Be more strict about escape sequences that rename windows or set titles:
ignore any that not valid UTF-8 outright, and for good measure pass the
result through our UTF-8-aware vis(3).
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 9faa25c56be..b80ee654350 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.780 2017/06/04 08:25:57 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.781 2017/06/04 09:02:36 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -2318,6 +2318,7 @@ enum utf8_state utf8_open(struct utf8_data *, u_char); 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_isvalid(const char *); int utf8_strvis(char *, const char *, size_t, int); int utf8_stravis(char **, const char *, int); char *utf8_sanitize(const char *); |