]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tr: mention multibyte problem in man page
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Feb 2022 20:16:07 +0000 (12:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 14 Feb 2022 20:16:40 +0000 (12:16 -0800)
* man/tr.x: Document tr problem.

man/tr.x

index f28f1b0d61c423ead735aac35da2a9bceb755e0a..b531032889aab45ec1f65c6473ca0cbe7b5a17c7 100644 (file)
--- a/man/tr.x
+++ b/man/tr.x
@@ -2,3 +2,12 @@
 tr \- translate or delete characters
 [DESCRIPTION]
 .\" Add any additional description here
+[BUGS]
+.PP
+Full support is available only for safe single-byte locales,
+in which every possible input byte represents a single character.
+The C locale is safe in GNU systems, so you can avoid this issue
+in the shell by running
+.B "LC_ALL=C tr"
+instead of plain
+.BR tr .