xz-analysis-mirror/src/scripts
Lasse Collin 6a4a4a7d26 xzgrep: Add more LC_ALL=C to avoid bugs with multibyte characters.
Also replace one use of expr with printf.

The rationale for LC_ALL=C was already mentioned in
69d1b3fc29 that fixed a security
issue. However, unrelated uses weren't changed in that commit yet.

POSIX says that with sed and such tools one should use LC_ALL=C
to ensure predictable behavior when strings contain byte sequences
that aren't valid multibyte characters in the current locale. See
under "Application usage" in here:

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sed.html

With GNU sed invalid multibyte strings would work without this;
it's documented in its Texinfo manual. Some other implementations
aren't so forgiving.
2022-07-17 21:36:25 +03:00
..
Makefile.am Build: Add support for translated man pages using po4a. 2020-02-07 15:32:21 +02:00
xzdiff.1 xzdiff: Update the man page about the exit status. 2021-06-04 19:02:38 +03:00
xzdiff.in Scripts: Add zstd support to xzdiff. 2021-01-11 23:57:11 +02:00
xzgrep.1 xzgrep: Update man page timestamp. 2021-11-13 21:04:05 +02:00
xzgrep.in xzgrep: Add more LC_ALL=C to avoid bugs with multibyte characters. 2022-07-17 21:36:25 +03:00
xzless.1 Major man page updates. 2010-09-27 23:29:34 +03:00
xzless.in xzless: Fix less(1) version detection when it contains a dot. 2021-06-04 18:52:48 +03:00
xzmore.1 Man pages: Use similar syntax for synopsis as in xz. 2013-06-30 18:02:27 +03:00
xzmore.in Scripts: Put /usr/xpg4/bin to the beginning of PATH on Solaris. 2019-09-24 23:02:40 +03:00