Re: [PATCH] env,printenv: with --null, avoid CRLF translation on windows
From:
Collin Funk
Subject:
Re: [PATCH] env,printenv: with --null, avoid CRLF translation on windows
Date:
Tue, 11 Aug 2026 18:42:43 -0700
User-agent:
Gnus/5.13 (Gnus v5.13)
PƔdraig Brady <P@draigBrady.com> writes:
> * NEWS: Mention the improvement.
> * src/env.c (main): With -0, set output to binary mode.
> * src/printenv.c (main): Likewise.
> ---
> NEWS | 3 +++
> src/env.c | 3 +++
> src/printenv.c | 4 ++++
> 3 files changed, 10 insertions(+)
Would this also be needed for other programs that use NUL seperators?
E.g. 'du -0' exists, but there is no xset_binary_mode call there.
Collin