--- Begin Message ---
Subject: |
tr docs: mention what to expect now vs. future |
Date: |
Thu, 06 May 2021 07:00:04 +0800 |
(info "(coreutils) tr invocation") says
Currently ‘tr’ fully supports only single-byte characters.
Eventually it will support multibyte characters; when it does, the ‘-C’
And the man page has no warning at all. #BUG. Please add one.
BTW,
$ echo 哇|tr 哇 123
123
It works fine! (People will think.)
Therefore be sure to mention just when it will start failing, with real
examples,
$ echo 哇|tr 哇 1
111
$ echo 哇|tr 哇 1234
123
$ echo 哇哇|tr 哇 1234
123123
$ echo 哇哇姑五湖|tr 哇 1234
1231231__五湖
$ echo "22°56'52.2\"N 121°14'09.3\"E" | tr ° d
22dd56'52.2"N 121dd14'09.3"E
Also on the INFO page, give examples of, for the same input,
what to expect now, and what to expect in the future.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#48248: tr docs: mention what to expect now vs. future |
Date: |
Mon, 14 Feb 2022 12:18:46 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 |
Thanks for the bug report. This stuff about "the future" has been there
for years so it's time to remove any predictions. I installed the
attached revamp of the tr documentation to try to address the problems
you mentioned, plus some others I noticed while in the neighborhood.
0001-tr-improve-multibyte-etc.-doc.patch
Description: Text Data
0002-tr-mention-multibyte-problem-in-man-page.patch
Description: Text Data
--- End Message ---