summaryrefslogtreecommitdiffstats
path: root/linux/LinuxProcess.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-04-14 20:55:48 +0200
committercgzones <cgzones@googlemail.com>2021-04-26 17:51:45 +0200
commit6bbb454881986a1a4d2e639b5fb6b7ac47374fe2 (patch)
tree625162cdf549ec2d588314273f3522e8474ea87e /linux/LinuxProcess.c
parenta2be57d768d19e578a1b165b9b54db602971a7ff (diff)
LinuxProcess: 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: - SECATTR - CGROUP - CTID
Diffstat (limited to 'linux/LinuxProcess.c')
-rw-r--r--linux/LinuxProcess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcess.c b/linux/LinuxProcess.c
index 61f22349..f511b413 100644
--- a/linux/LinuxProcess.c
+++ b/linux/LinuxProcess.c
@@ -744,7 +744,7 @@ static void LinuxProcess_writeField(const Process* this, RichString* str, Proces
Process_writeField(this, str, field);
return;
}
- RichString_appendWide(str, attr, buffer);
+ RichString_appendAscii(str, attr, buffer);
}
static double adjustNaN(double num) {

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