Subject: bug#48375: closed (Re: bug#48375: coding-system-for-read in net-utils-run-simple is not properly set)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 15 May 2021 09:40:02 +0000

Your bug report

#48375: coding-system-for-read in net-utils-run-simple is not properly set

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
48375: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48375
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#48375: coding-system-for-read in net-utils-run-simple is not properly set
From: Eli Zaretskii <[email-masked]>
To: iquiw <[email-masked]>
Cc: [email-masked]
Date: Sat, 15 May 2021 12:39:25 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: iquiw <[email-masked]>
> Date: Sat, 15 May 2021 18:32:05 +0900
> Cc: [email-masked]
> 
> > > 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.

Subject: coding-system-for-read in net-utils-run-simple is not properly set
From: iquiw <[email-masked]>
To: [email-masked]
Date: Wed, 12 May 2021 18:39:25 +0900
List-Id: <debbugs-submit.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.

`net-utils-run-program' (e.g. "M-x ping") has no problem.

Thanks in advance,
Iku