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#48375: coding-system-for-read in net-utils-run-simple is not properly set Date: Sat, 15 May 2021 12:39:25 +0300 Message-ID: <835yzkxrn6.fsf@gnu.org> References: <83bl9cxv0n.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31968"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48375-done@debbugs.gnu.org To: iquiw Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 15 11:40:11 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 1lhqmJ-00088x-6v for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 11:40:11 +0200 Original-Received: from localhost ([::1]:35612 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhqmI-0004yA-6i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 May 2021 05:40:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhqmA-0004vX-Kr for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 05:40:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhqmA-00006n-DX for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 05:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lhqmA-0006le-As for bug-gnu-emacs@gnu.org; Sat, 15 May 2021 05:40:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 May 2021 09:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 48375 X-GNU-PR-Package: emacs Mail-Followup-To: 48375@debbugs.gnu.org, eliz@gnu.org, iku.iwasa@gmail.com Original-Received: via spool by 48375-done@debbugs.gnu.org id=D48375.162107157325967 (code D ref 48375); Sat, 15 May 2021 09:40:02 +0000 Original-Received: (at 48375-done) by debbugs.gnu.org; 15 May 2021 09:39:33 +0000 Original-Received: from localhost ([127.0.0.1]:47609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqlg-0006kl-NT for submit@debbugs.gnu.org; Sat, 15 May 2021 05:39:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lhqle-0006kY-Qj for 48375-done@debbugs.gnu.org; Sat, 15 May 2021 05:39:31 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39754) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhqlZ-0008AK-KE; Sat, 15 May 2021 05:39:25 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2198 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 1lhqlZ-0003J9-6b; Sat, 15 May 2021 05:39:25 -0400 In-Reply-To: (message from iquiw on Sat, 15 May 2021 18:32:05 +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:206580 Archived-At: > From: iquiw > Date: Sat, 15 May 2021 18:32:05 +0900 > Cc: 48375@debbugs.gnu.org > > > > In the following code, `let' binding of `coding-system-for-read' > > > covers only `erase-buffer' call. > > > > > > https://emba.gnu.org/emacs/emacs/-/blob/47070ed39eda524d334e5f82dc7f4a50b8d3252c/lisp/net/net-utils.el#L366-375 > > > > > > So it does not affect to executed process and output characters are garbled. > > > e.g. "M-x ifconfig" on Windows. > > > > Thanks. Does the patch below fix the problem? > > Yes, it works fine with the patch. > Thank you! Thanks for testing, I installed the fix on the master branch, and I'm closing this bug report.