diff options
author | Craig Small <csmall@dropbear.xyz> | 2022-01-31 18:14:12 +1100 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2022-01-31 18:14:12 +1100 |
commit | 9f4db0fb5606e4872829bd44b29443d5707b1505 (patch) | |
tree | 15ea70cfcd8efa543f2950ccdca822aa6bcecd74 /NEWS | |
parent | 50a0d9a56cfc4f81c492e8a75071579da96eb42e (diff) | |
download | procps-ng-9f4db0fb5606e4872829bd44b29443d5707b1505.tar.gz |
free: Fix first column justification
free has for many years had a problem with translated header columns
or the first column. This is because printf("-9s", str) doesn't use
the wide length of the string but the char length meaning they are
mis-aligned.
Using the mbstowcs() function to get the wide length and then
a precision parameter to append the right number of spaces after the
number means we get what we need.
References:
procps-ng/procps#229
procps-ng/procps#204
procps-ng/procps#206
https://bugs.debian.org/1001689
Signed-off-by: Craig Small <csmall@dropbear.xyz>
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3,6 +3,7 @@ procps-ng-NEXT * Rename pwait to pidwait * free: Add committed line option merge #25 * free: Fix -h --si combined options issue #133, #223 + * free: Fix first column justification issue #229, #204, #206, Debian #1001689 * library: renamed to libproc-2 and reset to 0:0:0 * library: add support for accessing smaps_rollup issue #112, #201 * library: add support for accessing autogroups |