GNU bug report logs - #69795
29.1; cmdproxy.exe exits automatically after executing MSYS2 commands

Previous Next

Package: emacs;

Reported by: awrhygty <at> outlook.com

Date: Thu, 14 Mar 2024 11:02:02 UTC

Severity: normal

Tags: notabug

Found in version 29.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 69795 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: awrhygty <at> outlook.com
Cc: 69795 <at> debbugs.gnu.org
Subject: Re: bug#69795: 29.1;
 cmdproxy.exe exits automatically after executing MSYS2 commands
Date: Thu, 14 Mar 2024 13:25:37 +0200
tags 69795 notabug
thanks

> From: awrhygty <at> outlook.com
> Date: Thu, 14 Mar 2024 19:55:27 +0900
> 
> 
> I have installed MSYS2 commands.
> When executing some MSYS2 commands in shell-mode buffer,
> cmdproxy.exe exits unintentionally.
> 
> The log below has two prompt strings('c:\tmp>'), but the second one is
> displayed with "Process shell finished" simultaneously.

This is not an Emacs bug.  MSYS2 programs are subtly incompatible with
the native Windows build of Emacs, and some of those incompatibilities
are indeed in the area of running subprocesses and capturing their
output.  In particular, cmdproxy tries hard to accommodate Cygwin and
MSYS programs, but is rarely used with them, and no one stepped
forward to maintain such a combination and keep in good working order
as Cygwin and MSYS evolve.  Another bunch of problems is in the area
of text encoding and decoding: Cygwin and MSYS use UTF-8 by default,
something native Windows doesn't yet support well enough.  It is
possible that the problem you show was due to this latter issue, since
'ls' displays a non-ASCII file name there.

If you want to run MSYS or Cygwin programs from Emacs, my suggestion
is to use the Cygwin build of Emacs.  There are two configurations for
that: either use the Cygwin X server, or use the w32 "toolkit"; the
latter possibility has the look-and-feel very similar to the native
Windows build, so maybe you will prefer it.

Other than that, running MSYS programs from a native build of Emacs
should be considered "not really supported".




This bug report was last modified 1 year and 115 days ago.

Previous Next


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