]> git.ipfire.org Git - thirdparty/coreutils.git/commit
df: support different file system encodings when not using tty
authorPádraig Brady <P@draigBrady.com>
Sun, 3 Mar 2019 22:35:18 +0000 (14:35 -0800)
committerPádraig Brady <P@draigBrady.com>
Mon, 4 Mar 2019 06:31:08 +0000 (22:31 -0800)
commit811493e2a9fc9a4fee2a3161d78a03f8af1c2392
treecc6a31b4f136b3c89e91b3ca20d7f66e6c8fc527
parent0d6be4b01f9cef6dadb37db85dbbdd2ff3696228
df: support different file system encodings when not using tty

* src/df.c (replace_problematic_chars): A new wrapper to be
more conservative in our replacement when not connected to a tty.
* tests/df/problematic-chars.sh: Add a test case.
src/df.c
tests/df/problematic-chars.sh