From a3daa9910dfbfc0fc6b57ec37ad712fbc19b1e01 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sun, 29 Nov 2009 21:40:02 +0100 Subject: 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. --- src/misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc.h') diff --git a/src/misc.h b/src/misc.h index d8de0238..0b4eaaa5 100644 --- a/src/misc.h +++ b/src/misc.h @@ -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, -- cgit v1.2.3