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.devel Subject: Re: Problems with call-process (= identifying run-python issues) Date: Tue, 18 Aug 2020 18:41:25 +0300 Message-ID: <831rk4ezbu.fsf@gnu.org> References: <86h7t0nkiw.fsf@csic.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12340"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Juan =?utf-8?Q?Jos=C3=A9_Garc=C3=ADa-Ripoll?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 18 18:00:05 2020 Return-path: Envelope-to: ged-emacs-devel@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 1k841t-00035T-KS for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 18:00:05 +0200 Original-Received: from localhost ([::1]:39430 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k841s-0006aE-IQ for ged-emacs-devel@m.gmane-mx.org; Tue, 18 Aug 2020 12:00:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57524) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k83k9-0000yF-Sj for emacs-devel@gnu.org; Tue, 18 Aug 2020 11:41:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54035) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k83k9-0003pF-HO; Tue, 18 Aug 2020 11:41:45 -0400 Original-Received: from [176.228.60.248] (port=4324 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k83k1-0004CW-Fi; Tue, 18 Aug 2020 11:41:37 -0400 In-Reply-To: <86h7t0nkiw.fsf@csic.es> (juanjose.garciaripoll@gmail.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:253950 Archived-At: > From: Juan José García-Ripoll > Date: Tue, 18 Aug 2020 15:36:23 +0200 > > I am running into a weird issue in Windows 10, both with Emacs 27 and > Emacs 26.3. It all boils down to whether Emacs is invoked from the > command line or not. In one case, subprocesses get their input properly > redirected, in other cases not. All tests are done with plain vanilla > Emacs, using core libraries (no programming mode). > > My test files are below. Essentially, the file test.el is trying to > imitate what python.el uses to call a python process, but instead of > that, it uses a simple copycat script that copies the input stream to > the output stream. Could you please present a complete recipe for reproducing the problems, starting from "runemacs -Q"? I got confused by the test files. Can this be done without involving Python, for example? Thanks.