Plain stravis() because it will mangle UTF-8 characters, so add

utf8_stravis() which calls our existing utf8_strvis() and use it instead
This commit is contained in:
nicm
2017-01-18 10:08:05 +00:00
parent 4bb5a1d6a7
commit faa0570309
4 changed files with 18 additions and 3 deletions

1
tmux.h
View File

@@ -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);