DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 49N5XQ5t3269704 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=rgfa4I3c X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 99F7A3858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1729661604; bh=QYbIKTvJGJ4t4ROq6SflMRiI1iyt7LtIep1+eKCwDyo=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=rgfa4I3c5zqwWdZqz6r1Ntf7J+wXoUye8NR0nrtMJ3zttQC5EWgy+zcLzi0PPyKcG XtSM4wWK1jf796sI3bQO937a6eidqkmLvWSINgKN5DJhCmHD8poAJu3an8tPnS8yWo kHfUUk7jPJNxD8w0A4NT24gUsXdhoiiDs6fgFQZs= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 21EA63858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 21EA63858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729661584; cv=none; b=DxIZvB2IfOTRhCASL+Jy/mo14sXeI8CLaiI/4riYf1Qz5QjAzSRClX1orwNdm4calV9vj5Q7JLhS8ZI6gcrOwpVGkkbnW5hwX8/lmwX0Ph/RSnrXHgDKgvOXQ+U5+ExEOV3N2PW/2NHf3KoeghJ7SzuDKpVTKeAj7rn3p17XVzk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1729661584; c=relaxed/simple; bh=gdLLJ/37RSkf0z10KuQUhXiKNHsGab92hd1GQsVuGg0=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=gMC56RNrsCLXoniG92nBmzbx6sTs9IaCaqStWGiPvBKA9kuDbxSP4A6TvWbaHBjCjA0O8IILxCo59CcJVOPEbj++VC26w0hFeiL/ND3Qq53WUkHU1Wc/eQ5yYGgcDxbXLsiqQ+5/b06ML/NUFvrNZ1bJyKTFeG4MpWg6pxPiZ1Q= ARC-Authentication-Results: i=1; server2.sourceware.org Message-ID: <6fdbf92d-51f2-47ae-a482-5edd89ed3a89@maxrnd.com> Date: Tue, 22 Oct 2024 22:33:08 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Is this correct behaviour for 'rev'? To: cygwin AT cygwin DOT com References: Content-Language: en-US In-Reply-To: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mark Geisert via Cygwin Reply-To: Mark Geisert Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On 10/22/2024 8:00 PM, Backwoods BC via Cygwin wrote: > 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? The current Cygwin util-linux 2.39.3-2 rev behaves in the same, broken way. It looks like line-ending char(s) are not being handled correctly. Don't know yet if it's rev itself or fgetws() being used by rev that's busted. I'll investigate further. Thanks for the report! ..mark -- 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