From adf918520976a5f06181c1c05392a0da6e4bbaa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 23 Nov 2020 20:12:11 +0100 Subject: Fully support non-ascii characters in Meter-Bar Currently the code does not handle multi-byte characters, so length- computations take the raw count of C characters and not the to displayed size into account. An example is the degree sign for temperatures. Closes: #329 --- RichString.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'RichString.h') diff --git a/RichString.h b/RichString.h index 12b09540..262befc5 100644 --- a/RichString.h +++ b/RichString.h @@ -50,6 +50,8 @@ void RichString_prune(RichString* this); void RichString_setAttr(RichString* this, int attrs); +void RichString_appendChr(RichString* this, char c, int count); + void RichString_append(RichString* this, int attrs, const char* data); void RichString_appendn(RichString* this, int attrs, const char* data, int len); -- cgit v1.2.3