]> git.ipfire.org Git - thirdparty/systemd.git/commit
Add 8bit-version of get_process_cmdline() and use in cgroup-show.c
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 May 2019 15:44:57 +0000 (17:44 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 22 May 2019 08:16:00 +0000 (10:16 +0200)
commite3b4efd28f36a11a15531aa1a56ecadfd6f7253d
treedb6bee1c192cce630e2ddd393da860851783d78d
parent09c1dceef180630ecd6cf40e5c1fb653029b615c
Add 8bit-version of get_process_cmdline() and use in cgroup-show.c

This restores show_pid_array() output in legacy locales on the console.
Only one call to get_process_cmdline() is changed, all others retain
utf8-only mode. This affects systemd-cgls, systemctl status, etc, when
working locally.

Calls to get_process_cmdline() that cross a process boundary always use
utf8. It's the callers responsibility to convert this to some encoding that
they use. This means that we always pass utf8 over the bus.
src/basic/escape.c
src/basic/escape.h
src/basic/process-util.c
src/basic/process-util.h
src/shared/cgroup-show.c