From 0b0f1965fba57f1c75d92e36ac3cbc0d58396810 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 14 Feb 2022 12:16:07 -0800 Subject: [PATCH 2/2] tr: mention multibyte problem in man page * man/tr.x: Document tr problem. --- man/tr.x | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man/tr.x b/man/tr.x index f28f1b0d6..b53103288 100644 --- 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 . -- 2.32.0