free command has broken column formatting on LANG=pl_PL.utf8
Using command "free -b" on LANG=pl_PL.utf8 is broken on machines with higher ram size. It results in misformatted output. Lack of separation between first 2 columns breaks programs parsing the output with awk.
Example:
→ LANG=C free --version
free from procps-ng 3.3.17
→ LANG=C free -b
total used free shared buff/cache available
Mem: 33616953344 28112379904 1954963456 41123840 3549609984 5114142720
Swap: 0 0 0
→ LANG=pl_PL.utf8 free -b
razem użyte wolne dzielone buf/cache dostępne
Pamięć:33616953344 28112961536 1953677312 41123840 3550314496 5113556992
Wymiana: 0 0 0
I'm using version of procps-3.3.17 available on Gentoo. I couldn't test it on git version. Free I compiled ignores LANG environment variable.
Edited by anon