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>
This commit is contained in:
1
NEWS
1
NEWS
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user