mirror of https://github.com/xzeldon/htop.git
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:
parent
436808ff99
commit
a2be57d768
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue