diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-04-14 20:54:38 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-04-26 17:51:45 +0200 |
commit | a2be57d768d19e578a1b165b9b54db602971a7ff (patch) | |
tree | 70a1c61c158574272c20debf10f40ab41062775f /Process.c | |
parent | 436808ff99d7b7e6f5d6e8f3127d9d03f6295f98 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |