GNU bug report logs - #38080
'tr' BUG using complement option with delete chars in HEX vs OCTAL

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Owen Townsend <owen@HIDDEN>; dated Wed, 6 Nov 2019 01:00:02 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Nov 2019 00:59:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 05 19:59:28 2019
Received: from localhost ([127.0.0.1]:39296 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iS9fT-000641-SL
	for submit <at> debbugs.gnu.org; Tue, 05 Nov 2019 19:59:28 -0500
Received: from lists.gnu.org ([209.51.188.17]:48347)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <owen@HIDDEN>) id 1iS9f8-00063L-W9
 for submit <at> debbugs.gnu.org; Tue, 05 Nov 2019 19:59:08 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:56287)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <owen@HIDDEN>) id 1iS9f7-0005pg-C2
 for bug-coreutils@HIDDEN; Tue, 05 Nov 2019 19:59:06 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <owen@HIDDEN>) id 1iS9f5-0000Ls-RQ
 for bug-coreutils@HIDDEN; Tue, 05 Nov 2019 19:59:05 -0500
Received: from mail6.webfaction.com ([31.170.123.134]:53800
 helo=smtp.webfaction.com)
 by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <owen@HIDDEN>) id 1iS9f5-0000J1-Hc
 for bug-coreutils@HIDDEN; Tue, 05 Nov 2019 19:59:03 -0500
Received: from [192.168.1.5] (d99-199-114-146.bchsia.telus.net
 [99.199.114.146])
 by smtp.webfaction.com (Postfix) with ESMTPSA id 9FB6560049715
 for <bug-coreutils@HIDDEN>; Wed,  6 Nov 2019 00:59:03 +0000 (UTC)
To: bug-coreutils@HIDDEN
From: Owen Townsend <owen@HIDDEN>
Subject: 'tr' BUG using complement option with delete chars in HEX vs OCTAL
Message-ID: <f3a2da5a-5c11-e1e7-8230-6f10217e6f7f@HIDDEN>
Date: Tue, 5 Nov 2019 16:58:58 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.9.0
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------D9B0F766B312A95B25D18782"
Content-Language: en-US
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
 [fuzzy]
X-Received-From: 31.170.123.134
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 05 Nov 2019 19:59:26 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

This is a multi-part message in MIME format.
--------------D9B0F766B312A95B25D18782
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: quoted-printable

To: bug-coreutils.org
From: Owen Townsend, owen@HIDDEN
Date: Nov.05/2019
Subject: 'tr' BUG using complement option with delete chars in HEX vs OCT=
AL

fn2=3D$(echo $fn1 | tr -cd '\12\40-\176')=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #=
<-- OCTAL works, but HEX=20
preferred
fn2=3D$(echo $fn1 | tr -cd \$'\x0A\x20-\x7E')=C2=A0 #<-- HEX does not wor=
k

See attached scripts renameOK & renameOKx
renameOK=C2=A0 - octal coding, works OK
renameOKx - HEX coding does NOT work
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - see test result=
s coded as #comments at end of script

Please let me know if you confirm this is a bug and when it might be fixe=
d ?
I am using Ubuntu 16.04 & plan to upgrade to 20.04 when available

Thanks, Owen


--------------D9B0F766B312A95B25D18782
Content-Type: text/plain; charset=UTF-8;
 name="renameOK"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="renameOK"

IyEvYmluL2Jhc2gKIyByZW5hbWVPSyAtIEtvcm4gc2hlbGwgc2NyaXB0IGZyb20gVVZTSSBz
dG9yZWQgaW46IC9ob21lL3V2YWRtL3NmL3V0aWwvCiMgcmVuYW1lT0sgLSByZW5hbWUgYWxs
IGZpbGVzIGluIGRpcmVjdG9yeSwgdXNpbmcgdHIgLWNkICYgT0NUQUwgY2hhcmFjdGVycyAo
d29ya3MgT0spCiMgICAgICAgICAgLSBEZWxldGluZyBhbGwgTG93Qml0IChleGNlcHQgTGlu
ZUZlZWQpICYgSGlnaEJpdCBjaGFyYWN0ZXJzIAojIHJlbmFtZU9LeCA8LS0gQWx0ZXJuYXRl
IHNjcmlwdCBzc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QKICAgI05vdGUgLSBvcHRpb24gJ2MnIG9mICctY2QnIENPTVBMRU1FTlRTIChkZWxldGVz
IGFsbCBjaGFyYWN0ZXJzIG5vdCBzcGVjaWZpZWQpCiAgICMgZWNobyAiRGVidWc6IGZuMT0k
Zm4xIGZuMj0kZm4yIgogICBsZXQgeD14KzEKICAgaWYgW1sgJGZuMSA9PSAkZm4yIF1dOyB0
aGVuIGNvbnRpbnVlOyBmaQogICBtdiAtaSAiJGRpci8kZm4xIiAkZGlyLyRmbjIKICAgIz09
PT09PT09PT09PT09PT09PT09PT09PT09CiAgIGxldCB5PXkrMQogICBlY2hvICJmaWxlIyAk
eCAkZGlyLyRmbjEgLSByZW5hbWVkIHRvOiAkZGlyLyRmbjIiCmRvbmUKZWNobyAidG90YWwg
JHggZmlsZXMsICR5IHJlbmFtZWQgZGVsZXRpbmcgTG93Qml0IChleGNlcHQgTGluZUZlZWQp
ICYgSGlnaEJpdCBjaGFyYWN0ZXJzIgpleGl0IDAK
--------------D9B0F766B312A95B25D18782
Content-Type: text/plain; charset=UTF-8;
 name="renameOKx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="renameOKx"

IyEvYmluL2Jhc2gKIyByZW5hbWVPS3ggLSBLb3JuIHNoZWxsIHNjcmlwdCBmcm9tIFVWU0kg
c3RvcmVkIGluOiAvaG9tZS91dmFkbS9zZi91dGlsLwojIHJlbmFtZU9LeCAtIHJlbmFtZSBk
aXJlY3Rvcnkgb2YgZmlsZW5hbWVzIDwtLSBkZWxldGUgY2hhcnMgaW4gSEVYLCBkb2VzIE5P
VCB3b3JrID8/PwojICAgICAgICAgICAtIERlbGV0aW5nIGFsbCBMb3dCaXQgKGV4Y2VwdCBM
aW5lRmVlZCkgJiBIaWdoQml0IGNoYXJhY3RlcnMgCiMgcmVuYW1lT0sgIDwtLSBBbHRlcm5h
dGUgdmVyc2lvbiBzcGVjaWZpZXMgZGVsZXRlIGNoYXJzIGluIE9DVEFMICYgZG9lcyB3b3J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b3YgIDUgMDk6MTEgTXkgYXJ0OiBhdF4gX3Zz
YiB8b2ZmaWNlcy5qcGcKIyAKIyBSZXN1bHRpbmcgZmlsZW5hbWVzIGFmdGVyIC0tPiByZW5h
bWVPS3ggdG1wMQojIC1ydy1yLS0tLS0gMSB1dmFkbSBhcHBzICAgODQzMzUgTm92ICA1IDA5
OjE0IEFub3RoZXJqcGcKIyAtcnctci0tLS0tIDEgdXZhZG0gYXBwcyAxNTAwNDAzIE5vdiAg
NSAwOToxNCBJTUdfMjAxNzAxMjFfMTQyNTEyanBnCiMgLXJ3LXItLS0tLSAxIHV2YWRtIGFw
cHMgICA5MjM4NCBOb3YgIDUgMDk6MTQgTWFydDphdF5fdnNib2ZmaWNlc2pwZwojIC1ydy1y
LS0tLS0gMSB1dmFkbSBhcHBzICAgNDgxNTEgTm92ICA1IDA5OjE0IE1pYXRvbWF0b2hlYWRh
cnRqcGcKIyAKIyByZW5hbWVPSyB0bXAxICA8LS0gQWx0ZXJuYXRlIHNjcmlwdCBzcGVjaWZp
ZXMgZGVsZXRlIGNoYXJzIGluIE9jdGFsIHdvcmtzIE9LCiMgPT09PT09PT09PT09PSAgICAt
IHdoeSBkb24ndCByZW5hbWVPS3ggSEVYIGNoYXJzIHdvcmsgPz8/Cg==
--------------D9B0F766B312A95B25D18782--




Acknowledgement sent to Owen Townsend <owen@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#38080; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.