GNU bug report logs - #45093
Character 149 causing ASCII BEL output to console in Windoze port of Gnu CoreUtils

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: "Robert S. Kissel" <robert.kissel@HIDDEN>; dated Mon, 7 Dec 2020 06:58:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

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


Received: (at 45093) by debbugs.gnu.org; 7 Dec 2020 17:27:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 07 12:27:45 2020
Received: from localhost ([127.0.0.1]:55398 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kmKIb-00056w-9A
	for submit <at> debbugs.gnu.org; Mon, 07 Dec 2020 12:27:45 -0500
Received: from mail-wm1-f51.google.com ([209.85.128.51]:51171)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <meyering@HIDDEN>) id 1kmKIY-00056g-Fw
 for 45093 <at> debbugs.gnu.org; Mon, 07 Dec 2020 12:27:44 -0500
Received: by mail-wm1-f51.google.com with SMTP id c198so12174564wmd.0
 for <45093 <at> debbugs.gnu.org>; Mon, 07 Dec 2020 09:27:42 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=lfZI4r7RNkr0+DFKPzdNxECMhIANDRDFw+Zac9rE8LU=;
 b=B3ja4yj9yVuajH6YWSN//89fHXob3GgBXCW6S2lDAqYZr4+ZyRpqqrPsjTp5tnjQY9
 WUlq0m1SRkUHDi9lRPX66TkPxHMuv25awyUXxhY+a5q8rskevvdc8iuwaK4gObzDO7bc
 Ju7y3CwgJ552TuAYGV9pqyKc32LOQSauvTOmDRXVqnZX+F8KE3jLQDfqAFs+HMgXFfxB
 EzD6RwvVjUmMGkbZVQzDpbJKzVeleQW3GPGDWJhOd7AOidE1p+1idXzzgxNsBIAdBOvY
 SxAb0gvrD2lVCUrj5eOx3O1ZGjdojiiUhMft3yg/gZC0qqVdhtx/IFO78hH9WRy4xO9r
 DKJg==
X-Gm-Message-State: AOAM531O7jYFs9S/E3OWGXQwDlErm1N2wD7uB6h9mB9pbRVJDlDYcSkG
 369arBQjvBjKFU/olbDrgVO/pszwUzBBVOQgwqY=
X-Google-Smtp-Source: ABdhPJyvEu1TxX55C8iTYMCOtlTV3M3OujSkTZYvzFCNWWCZJ600YeORsHMLmxYKuDLVOnckJ92TH8rktykG84hVJCg=
X-Received: by 2002:a1c:810c:: with SMTP id c12mr19876385wmd.96.1607362056691; 
 Mon, 07 Dec 2020 09:27:36 -0800 (PST)
MIME-Version: 1.0
References: <CAN=-8vANzuWcxotFAH8z_SPn3Yyo2YdM+pW=cbgDKVqS8noWVA@HIDDEN>
 <c88fe215-194a-9e20-ca2b-ac947354e671@HIDDEN>
In-Reply-To: <c88fe215-194a-9e20-ca2b-ac947354e671@HIDDEN>
From: Jim Meyering <jim@HIDDEN>
Date: Mon, 7 Dec 2020 09:27:25 -0800
Message-ID: <CA+8g5KFf-nmMCBQ9jaOKGzPs2t08tjiGLjyNQbXzwFFRROnMZg@HIDDEN>
Subject: Re: bug#45093: Character 149 causing ASCII BEL output to console in
 Windoze port of Gnu CoreUtils
To: Paul Eggert <eggert@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.5 (/)
X-Debbugs-Envelope-To: 45093
Cc: "Robert S. Kissel" <robert.kissel@HIDDEN>, 45093 <at> debbugs.gnu.org
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: -0.5 (/)

tags 45093 notabug
close 45093
stop

On Mon, Dec 7, 2020 at 9:11 AM Paul Eggert <eggert@HIDDEN> wrote:
> On 12/6/20 8:23 PM, Robert S. Kissel wrote:
> > I'm pretty sure this is a bug in the Windoze port of head and tail,
>
> You should have better luck writing directly to the people who prepared that
> port, as they don't hang out on this mailing list and we largely don't worry
> about MS-Windows.

Thanks for replying, Paul. Marking this as "done" and not a bug.




Information forwarded to bug-coreutils@HIDDEN:
bug#45093; Package coreutils. Full text available.

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


Received: (at 45093) by debbugs.gnu.org; 7 Dec 2020 17:10:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 07 12:10:29 2020
Received: from localhost ([127.0.0.1]:55336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kmK1s-0002We-Sp
	for submit <at> debbugs.gnu.org; Mon, 07 Dec 2020 12:10:29 -0500
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59582)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eggert@HIDDEN>) id 1kmK1p-0002WO-Sx
 for 45093 <at> debbugs.gnu.org; Mon, 07 Dec 2020 12:10:27 -0500
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 428461600FA;
 Mon,  7 Dec 2020 09:10:19 -0800 (PST)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
 with ESMTP id oFrvaZE6eQC3; Mon,  7 Dec 2020 09:10:18 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C414160100;
 Mon,  7 Dec 2020 09:10:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
 by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
 with ESMTP id Fr4OEqFz8pMk; Mon,  7 Dec 2020 09:10:18 -0800 (PST)
Received: from [192.168.1.9] (cpe-23-243-218-95.socal.res.rr.com
 [23.243.218.95])
 by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7A4901600FA;
 Mon,  7 Dec 2020 09:10:18 -0800 (PST)
Subject: Re: bug#45093: Character 149 causing ASCII BEL output to console in
 Windoze port of Gnu CoreUtils
To: "Robert S. Kissel" <robert.kissel@HIDDEN>
References: <CAN=-8vANzuWcxotFAH8z_SPn3Yyo2YdM+pW=cbgDKVqS8noWVA@HIDDEN>
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
Message-ID: <c88fe215-194a-9e20-ca2b-ac947354e671@HIDDEN>
Date: Mon, 7 Dec 2020 09:10:17 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
 Thunderbird/78.5.0
MIME-Version: 1.0
In-Reply-To: <CAN=-8vANzuWcxotFAH8z_SPn3Yyo2YdM+pW=cbgDKVqS8noWVA@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 45093
Cc: 45093 <at> debbugs.gnu.org
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 (---)

On 12/6/20 8:23 PM, Robert S. Kissel wrote:
> I'm pretty sure this is a bug in the Windoze port of head and tail,

You should have better luck writing directly to the people who prepared that 
port, as they don't hang out on this mailing list and we largely don't worry 
about MS-Windows.




Information forwarded to bug-coreutils@HIDDEN:
bug#45093; Package coreutils. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 7 Dec 2020 06:57:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Dec 07 01:57:40 2020
Received: from localhost ([127.0.0.1]:52169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1kmASq-0000pj-6g
	for submit <at> debbugs.gnu.org; Mon, 07 Dec 2020 01:57:40 -0500
Received: from lists.gnu.org ([209.51.188.17]:46872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <robert.kissel@HIDDEN>) id 1km842-0005Gc-F3
 for submit <at> debbugs.gnu.org; Sun, 06 Dec 2020 23:23:54 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:54928)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <robert.kissel@HIDDEN>)
 id 1km842-0004iM-8u
 for bug-coreutils@HIDDEN; Sun, 06 Dec 2020 23:23:54 -0500
Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:37264)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <robert.kissel@HIDDEN>)
 id 1km840-000768-KE
 for bug-coreutils@HIDDEN; Sun, 06 Dec 2020 23:23:53 -0500
Received: by mail-ot1-x32b.google.com with SMTP id o11so8675803ote.4
 for <bug-coreutils@HIDDEN>; Sun, 06 Dec 2020 20:23:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to:cc;
 bh=PoatTlLOp4ZmqwOEslJ3xJDVB3cRN2ZpEmPy5t3CL/Q=;
 b=lNOIjZ0OIEbVXkNcB/BqzapvikV36wwrydhTAGbj2uf9fMcZN09dKUa+eNKqwEYY5P
 ROI9Egh5eYMtl3awX/sZVpdW/XCrcYfC69e+YpheMubKzDYoJYF/PHOgVxd18gfNrD9V
 Wqf1FAiidYqMEkfgUhXG5fcTA7pRC9u5SUTwHLjEN2lBNaMpJJVHhlHF57lD66j9MQT2
 AxH7v5kM1orYnGwr77w9TJAqML/N5YgHEbItGs00vqDCNQGwsiRKx0ai6ah53Bykcf86
 iE9/2YjuxRzi+DiV5JTwmVMi1kmc4z0DzP/u+y79J+8D+az6wDCch3HsBttAcrBgOvN+
 2l/g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc;
 bh=PoatTlLOp4ZmqwOEslJ3xJDVB3cRN2ZpEmPy5t3CL/Q=;
 b=GVCNXDP024ts5jRPpMbHXTzjg2bhRc0SffopO3DdzEAYszDJPn998Lr+yzP2CQjObf
 ctddhrsqXjtiZz6BeCYr9iJuHWtO63avgnDLIIq2ZtTaGbwoJBJfR4GizHIegiHmFDXD
 5NBhZUGGJ36fbhnHez4dU2PNDjll7+Hjj/S5DEtPhBu/k2tsoKhGi2HBh85qdGmjpo/9
 ecKz4mArg8Pz6zYNkQrlEmgcfovZKljKW1b13+vGd3WL6w4SGELVhiNr29sCM2UpQLtn
 0PKPP4c9IZjlKwN6fnK13RfpO7aSpc3qcrx6w6dZ0ipaxSym2a07F6NY0iyWGtlRcj6C
 9n5g==
X-Gm-Message-State: AOAM532OgesXPVNZ/I8mYhSkjGlf+PUGb9UOO+0ZZqA/jUl8FHYqQvli
 8b4ySmZAzo/7l8HLAC5rVblXHk15u7NbrKK/HkdiH+H0
X-Google-Smtp-Source: ABdhPJw1fP/TnLKZkJQIJoX1Vb76u2radz2SriziWtxsYsVni9dJtpQ6gdUKoc0HyNL/lWpkF2+svVyobHOywg2fQUs=
X-Received: by 2002:a9d:589:: with SMTP id 9mr11996860otd.72.1607315030740;
 Sun, 06 Dec 2020 20:23:50 -0800 (PST)
MIME-Version: 1.0
Received: by 2002:a9d:67c7:0:0:0:0:0 with HTTP;
 Sun, 6 Dec 2020 20:23:50 -0800 (PST)
From: "Robert S. Kissel" <robert.kissel@HIDDEN>
Date: Sun, 6 Dec 2020 23:23:50 -0500
Message-ID: <CAN=-8vANzuWcxotFAH8z_SPn3Yyo2YdM+pW=cbgDKVqS8noWVA@HIDDEN>
Subject: Character 149 causing ASCII BEL output to console in Windoze port of
 Gnu CoreUtils
To: bug-coreutils@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::32b;
 envelope-from=robert.kissel@HIDDEN; helo=mail-ot1-x32b.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 07 Dec 2020 01:57:39 -0500
Cc: jim@HIDDEN
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: -2.3 (--)

Gentlemen:

To reproduce (on Windoze):

perl -e "print chr(149)" | head
perl -e "print chr(149)" | tail
perl -e "print chr(149)" | cat
perl -e "print chr(149)" | grep -v abc

I'm pretty sure this is a bug in the Windoze port of head and tail,
and it is also in grep and probably a number of other programs where I
haven't encountered it yet. It ONLY beeps if it is sent to the
CONSOLE.  If the output is further piped into a file, the character is
written as a single MW character (195 decimal, 95 hex).  In other
words,

perl -e "print chr(149)" | head >output.txt

will not corrupt the character or change it to an ASCII BEL character.

Versions I'm using:

head/tail (GNU coreutils) 5.3.0
Written by David MacKenzie and Jim Meyering.
Copyright (C) 2005 Free Software Foundation, Inc.

cat (GNU coreutils) 5.3.0
Written by Torbjorn Granlund and Richard M. Stallman.

GNU grep 2.5.4
Copyright (C) 2009 Free Software Foundation, Inc.

Windows 7 "Ultimate" on a PC; cmd console.

Character 149 is a Unicode C1 control character MW or "MESSAGE
WAITING" character, but is turning into a C0 BEL character (character
7) by mistake.

I noticed this when I was working with Chinese text encoded in UTF-8.
Just outputing character 149 to the console in Windoze with another
program does NOT produce this queer effect of "playing" character 7,
the ASCII BEL.

It's quite devastating--the machine and software are fast, and the
screendump ends up freezing the console and making it impossible to
interrupt with any sort of kill signal--one may only wait an hour for
the beeping to stop, or else terminate the console window itself and
open a fresh one.

I have no idea why this should be happening--but I would appreciate it
if you'd reproduce it, now that I've narrowed down exactly WHICH byte
is causing this effect--or else tell me if I'm zillions of versions
behind or if this is a known problem with the Windoze console that has
nothing to do with the software (but then I don't understand why other
programs don't mimic this behavior).

Many thanks in advance for your attention.

Very truly yours,
Robert S. Kissel
Hamden, Connecticut
U.S.A.




Acknowledgement sent to "Robert S. Kissel" <robert.kissel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#45093; 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, 7 Dec 2020 17:30:01 UTC

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