diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-11-29 21:40:02 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-11-29 21:40:02 +0100 |
commit | a3daa9910dfbfc0fc6b57ec37ad712fbc19b1e01 (patch) | |
tree | 1e2aa63886a04d08ba18fe37441bb55580365e4f /src/misc.h | |
parent | ba9c7b7e9afdfcc01b5a35c4c387642925b1bf9a (diff) |
respect UTF-8 when splitting long lines in plain.cc (noticed by corvid)
When splitting long lines in plain text to avoid X11 coordinate
overflows we need to make sure that multibyte UTF-8 chars are not
split.
Additionally combining chars like accents should stay together with
their base char.
Diffstat (limited to 'src/misc.h')
-rw-r--r-- | src/misc.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -10,7 +10,7 @@ extern "C" { char *a_Misc_escape_chars(const char *str, const char *esc_set); -char *a_Misc_expand_tabs(const char *str, int len); +int a_Misc_expand_tabs(char **start, char *end, char *buf, int buflen); int a_Misc_get_content_type_from_data(void *Data, size_t Size,const char **PT); int a_Misc_content_type_check(const char *EntryType, const char *DetectedType); void a_Misc_parse_content_type(const char *str, char **major, char **minor, |