`emerge --info` does not display information about memory and swap with non-English locales: KiB Mem: XXXXXXXX total, XXXXXXXX free KiB Swap: XXXXXXXX total, XXXXXXXX free This information is retrieved by portage.util._get_vm_info.get_vm_info() function which parses output of: - On Linux: free - Else: sysctl -a I do not know if output of `sysctl -a` would be localized ("Free Memory Pages" string), but better to also force C locale for that command.
Created attachment 576468 [details, diff] Patch
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=f69c2596ff6f483bec55c17918e4e17df6236b89 commit f69c2596ff6f483bec55c17918e4e17df6236b89 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> AuthorDate: 2019-05-13 15:15:03 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-05-20 04:44:54 +0000 get_vm_info: Set C locale for subprocesses. Parsing of localized output of subprocesses would fail, making `emerge --info` not display information about memory and swap. Bug: https://bugs.gentoo.org/685854 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/util/_get_vm_info.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)