Paul Eggert <egg...@cs.ucla.edu> writes: > On 8/13/25 09:39, Vincent Lefevre wrote: >> Many programs quote non-printable characters, e.g. those from >> GNU Coreutils > > Oh, thanks, I didn't know that. I see this was added to coreutils > several years ago. In that case, patches to do this for gzip would be > welcome.
Is there any reason that gzip doesn't use quote and error from Gnulib? e.g. to avoid dependencies on locale stuff? I'm assuming that it is just because no one has cared enough to add it to gzip, but that feels like the correct solution to this issue. There are some places where it is a bit more work than adding quote/quote_n like this: fprintf(stderr,"%s: %s/%s: pathname too long\n", program_name, dir, entry); Ideally we could get rid of the MAX_PATH_LEN limitation on file names (see GNU Coding Standards [1]) and therefore never have to print this message. But that is more complex than this issue... Collin [1] https://www.gnu.org/prep/standards/standards.html#Semantics