delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/10/22/23:01:33

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49N31WIE3203621
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=BvU0De5r
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D6EB3858C56
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1729652490;
bh=by1TZhXmSY27/yXact2jFxBHdoxR0PeT3pKf/FABaNE=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=BvU0De5rKhJj+AN/hkdBqzikbIWzLDpPcE/zR6rTtN46e46L+jSPyepb6q2H9dzXW
HJVNxquECOa951cp1B8QM4mc1i+GcfVPg1XMxENrsQF54nOQVe8dwF0YCZXlXmwqpE
RMEu5mvDKF02yuAvA3v5IXGNVY7JBgQNx9R/3i58=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B49143858D28
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B49143858D28
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729652433; cv=none;
b=dgufFbo2sftVise6kVS9p//zzhSxXagDb+PvoMNKlRI7TEjy6eQBRT1DPXXYnAoFctWtI3Baar2mxmZ8TiSCf3vM//uXuUo5xgoOFF+3fGCeHKy793msW38HsNArwAjnlxi8aiOf58rwI8KZ5Nx2fX0+wyIX4sCh7GxZPat2VJc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1729652433; c=relaxed/simple;
bh=psE3zaVYpn0eahLbIgMp+ZIODR/AaUVu9VYm/wSklQ0=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=wGMPfA7TIRXBrIRI1xQVgpcJf9OoG5CAPoC+C/UxFqv85lLWEYGhMhzlVbaWkton8Pu4400Z+oxSFe5/HVACpKHUp1FJeyvxvkjcHoCdXLBfliJ3IL41lyWQYyzcU/AnWgTZY+vE8VlYdLu2AfJFiSOpjKZztsukf3WjH/q+pyk=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1729652430; x=1730257230;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=psE3zaVYpn0eahLbIgMp+ZIODR/AaUVu9VYm/wSklQ0=;
b=csVf7bYf+ZtHYm9zaUF2620T700GnoQoOswlp0RAPz2rshLCM5aKac9TOHQ1KFaVC+
JpuhFbtT3DqD/oiIDiTpZFZHtcNnCZaOpAmD4LWlnJKa2HU2O6GxQ8YuuRnlmlvNcWdG
r7LhFgocHju/uYEhzrJYMeuBBbrAz4+mbZ7rHWAQPaVOp3BcxVbORwjqxaujuD7gPPjA
6NChzPDd8fPauJpo6Ghjp/GAj7g/k4I6I5J342M6Vyea3ruh8LzmJdfrS/5Ps2GhQLCl
TEFwigbJT5JZjHf068UE9pc/6kTPb/KAJd8EuthjYlI6cgffPsUVSv7ZjbobhZNx6H6p
NhIQ==
X-Gm-Message-State: AOJu0YyWCCj8q21mgv47oXMsoWiabSl+nwMxfieku31Q6n5vNmrvLgWn
fup4KRcNHEtlbnHPaPIpFRx7lLaU+GF3L050zABwPFDz54WkD+erJtBVyfl5lgmOso08G9Bu4Z2
wK6ph5H8ybqzNVQkbO5XzLqlsTycqk95APqY=
X-Google-Smtp-Source: AGHT+IHsRJhtcZYQafsDimL3QToVb7c3HUMc98/DsTFqSE3R1Nym7is+3+2t96ycXXK7/M9p+y1rKAjFJjkpVbWq/TY=
X-Received: by 2002:a05:6402:3714:b0:5cb:7295:49b with SMTP id
4fb4d7f45d1cf-5cb8b1c37c6mr833673a12.34.1729652429949; Tue, 22 Oct 2024
20:00:29 -0700 (PDT)
MIME-Version: 1.0
Date: Tue, 22 Oct 2024 20:00:17 -0700
Message-ID: <CAKwdsS9FGm9nqtZ+vSQ+WEWzRf-zUFAS06eo=ASwNB6ST3gddw@mail.gmail.com>
Subject: Is this correct behaviour for 'rev'?
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Backwoods BC via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Backwoods BC <completely DOT and DOT totally DOT trash AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

It appears that 'rev' is choking on any character \x80 or higher, but
is OK with those \x1f or smaller. It doesn't give an error or ignore
it, it just stops.

I don't have access to a Linux box so I can't see if this happens
there and nothing in the documentation suggests that this is the
correct functionality.

Test case:
printf 'no non-ASCII characters\nhex 01 >\x01< here\nhex 80 >\x80<
here\nLine 4\n'|rev|rev

This is for "rev from util-linux 2.33.1"

I don't have the current version of 'rev' on my system due to not
having updated in a while. I accidentally screwed up my installation
and have been reluctant to wipe it and start over.

So, is this the expected behaviour for the current version of 'rev'
under Cygwin and/or Linux?

Thanks

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019