From a2be57d768d19e578a1b165b9b54db602971a7ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 14 Apr 2021 20:54:38 +0200 Subject: Process: print default buffer in ascii `RichString_appendWide()` is more expensive than `RichString_appendAscii()` due to the calls to `mbstowcs(3)` and `iswprint(3)`. Use the latter to print the process field buffer by default. For the following fields this theoretically can corrupt the output: - TTY --- Process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Process.c') diff --git a/Process.c b/Process.c index 38a82d7a..9f33a57e 100644 --- a/Process.c +++ b/Process.c @@ -402,7 +402,7 @@ void Process_writeField(const Process* this, RichString* str, ProcessField field assert(0 && "Process_writeField: default key reached"); /* should never be reached */ xSnprintf(buffer, n, "- "); } - RichString_appendWide(str, attr, buffer); + RichString_appendAscii(str, attr, buffer); } void Process_display(const Object* cast, RichString* out) { -- cgit v1.2.3