From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#51877: 27.2; term: error in process filter Date: Mon, 15 Nov 2021 21:19:54 +0200 Message-ID: <835yst2plx.fsf@gnu.org> References: <263fffec7d58e1851940ace4655fe5b913248b2a.camel@librehacker.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51877@debbugs.gnu.org To: Christopher Howard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 15 20:21:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmhXS-0005Ce-1O for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Nov 2021 20:21:10 +0100 Original-Received: from localhost ([::1]:55056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmhXQ-0008DY-Jh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Nov 2021 14:21:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42486) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmhXK-0008Cy-Jk for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 14:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmhXK-0003PZ-BX for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 14:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mmhXJ-0006d7-LG for bug-gnu-emacs@gnu.org; Mon, 15 Nov 2021 14:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Nov 2021 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51877 X-GNU-PR-Package: emacs Original-Received: via spool by 51877-submit@debbugs.gnu.org id=B51877.163700401525393 (code B ref 51877); Mon, 15 Nov 2021 19:21:01 +0000 Original-Received: (at 51877) by debbugs.gnu.org; 15 Nov 2021 19:20:15 +0000 Original-Received: from localhost ([127.0.0.1]:56199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmhWY-0006bV-QU for submit@debbugs.gnu.org; Mon, 15 Nov 2021 14:20:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmhWW-0006b8-JM for 51877@debbugs.gnu.org; Mon, 15 Nov 2021 14:20:13 -0500 Original-Received: from [2001:470:142:3::e] (port=46244 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmhWR-0003Ir-DD; Mon, 15 Nov 2021 14:20:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=aZAe50/0FYx+Y7qiCimGUxf4QloVHvTMtwGKe/NldQA=; b=pFuayjYt7GtF qgXrlQZ2Pn9mu3YXt03tBHuhdcflhI9FTxwnEjRVv9bEM4qDdMIF1W0YkI3E0VxCFhfjKZpf0Lha8 sKwArjLhVUx8QcHgdThMGEgMdJFp8F94+/whxuIj5nGTg7CAYMqOM4xo9XEfkXchNcfp9CkIPG9tQ D+wtp/TOkKSyZpoCmZC8cKFh1FDaDSJE5Z0UMSlZcAEscgi4fKH3C0wjkfN33cTN/9SOrN8GAAO9s TjHiwWYT8B6Us9gL0FBp/LNY/8TmnvooBM3zTQ5YoKG17HAYOtytnGTW1c40hol3sA/3ztZFyaVbw W01aBy5JOxMu3OzW0TVl6A==; Original-Received: from [87.69.77.57] (port=2557 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmhWP-0000pm-Bv; Mon, 15 Nov 2021 14:20:07 -0500 In-Reply-To: <263fffec7d58e1851940ace4655fe5b913248b2a.camel@librehacker.com> (message from Christopher Howard on Mon, 15 Nov 2021 10:10:38 -0900) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220081 Archived-At: > From: Christopher Howard > Date: Mon, 15 Nov 2021 10:10:38 -0900 > > Conditions: Computer with a /dev/ttyUSB0 character source which > generates > garbage output characters in the form of a long list of \371 bytes. In > my case, was connected via sterm to an ESP8266 microcontroller. > > 1) M-x term (leave it in char mode) > 2) sterm -n /dev/ttyUSB0 -s 115200 > 3) cause the garbage output to be generated > 4) while the cursor is still at the end of the garbage line, try to > type > in a normal character. > > The character will get sent to sterm, but the echoed back character > will > not appear in the emacs terminal, and an error will appear containing > the character (see below). > > Pressing enter to begin a new line will clear the error. > > Perhaps this error could be duplicated by those not having my > microcontroller setup, but filling a file with some \371 or other > garbage characters, and cat'ing that file into the emacs terminal. The > issue is that garbage characters somehow confuses the process filter, > whatever that is. What is the value of process-coding-system in this case? If a process generates binary garbage, its output should be decoded as raw-text, whereas the Emacs defaults are set for a program which sends human-readable text. So Emacs tries to decode your garbage as if it were UTF-8, and chokes. IOW, I think this is a cockpit error.