summaryrefslogtreecommitdiffstats
path: root/Process.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-04-14 20:54:38 +0200
committercgzones <cgzones@googlemail.com>2021-04-26 17:51:45 +0200
commita2be57d768d19e578a1b165b9b54db602971a7ff (patch)
tree70a1c61c158574272c20debf10f40ab41062775f /Process.c
parent436808ff99d7b7e6f5d6e8f3127d9d03f6295f98 (diff)
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
Diffstat (limited to 'Process.c')
-rw-r--r--Process.c2
1 files changed, 1 insertions, 1 deletions
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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy