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
This commit is contained in:
Christian Göttsche 2021-04-14 20:54:38 +02:00 committed by cgzones
parent 436808ff99
commit a2be57d768
1 changed files with 1 additions and 1 deletions

View File

@ -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 */ assert(0 && "Process_writeField: default key reached"); /* should never be reached */
xSnprintf(buffer, n, "- "); xSnprintf(buffer, n, "- ");
} }
RichString_appendWide(str, attr, buffer); RichString_appendAscii(str, attr, buffer);
} }
void Process_display(const Object* cast, RichString* out) { void Process_display(const Object* cast, RichString* out) {