GNU bug report logs - #72224
Two bugs in windows operating system

Previous Next

Package: emacs;

Reported by: yellowPolyp <yellowPolyp <at> proton.me>

Date: Sun, 21 Jul 2024 08:42:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 72224 in the body.
You can then email your comments to 72224 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#72224; Package emacs. (Sun, 21 Jul 2024 08:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to yellowPolyp <yellowPolyp <at> proton.me>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 21 Jul 2024 08:42:02 GMT) Full text and rfc822 format available.

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

From: yellowPolyp <yellowPolyp <at> proton.me>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: Two bugs in windows operating system
Date: Sat, 20 Jul 2024 12:50:34 +0000
There are two bugs in GNU Emacs running on Windows OS. 
First, When Emacs is opened in terminal mode, it displays some dark colors as 'green'. Usually these dark color has G and B which is bigger than 0. I think that it's related to `w32console`. 
Second, when I start dynamic programs like `sh` or `gdb` using `start-process`, Emacs shows error `starting child process:invalid argument`. This makes commands like `term` and `compile` unusable. 
Except these bugs, I'm having fun using Emacs. Thank you very much for creating this awesome text editor.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72224; Package emacs. (Sun, 21 Jul 2024 08:55:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: yellowPolyp <yellowPolyp <at> proton.me>
Cc: 72224 <at> debbugs.gnu.org
Subject: Re: bug#72224: Two bugs in windows operating system
Date: Sun, 21 Jul 2024 11:54:35 +0300
tags 72224 unreproducible moreinfo
thanks

> Date: Sat, 20 Jul 2024 12:50:34 +0000
> From:  yellowPolyp via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> There are two bugs in GNU Emacs running on Windows OS. 

It is better to report each issue in a separate bug report, so that
they are easier to track.

> First, When Emacs is opened in terminal mode, it displays some dark colors as 'green'. Usually these dark color has G and B which is bigger than 0. I think that it's related to `w32console`. 

This is not a bug.  Emacs on TTY frames transparently approximates the
colors using the available ones, the ones that the terminal actually
supports, in this case it maps them to the 16 available colors.  One
deliberate feature of this mapping is that non-gray colors are
preferred, so that the probability of a color to be mapped to a
distinct non-gray color is higher.  What you see is a side effect of
that deliberate design.

> Second, when I start dynamic programs like `sh` or `gdb` using `start-process`, Emacs shows error `starting child process:invalid argument`. This makes commands like `term` and `compile` unusable. 

I cannot reproduce this.  Please show a detailed recipe starting from
"emacs -Q".  Please also tell which version of Emacs are you using and
how you invoke Emacs.




Added tag(s) moreinfo and unreproducible. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 21 Jul 2024 08:55:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72224; Package emacs. (Sat, 27 Jul 2024 07:21:03 GMT) Full text and rfc822 format available.

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

From: Sebastián Monía <code <at> sebasmonia.com>
To: yellowPolyp <yellowPolyp <at> proton.me>
Cc: 72224 <at> debbugs.gnu.org
Subject: Re: bug#72224: Two bugs in windows operating system
Date: Fri, 26 Jul 2024 23:20:48 -0400
Hello yellowPolyp,

> Second, when I start dynamic programs like `sh` or `gdb` using
> `start-process`, Emacs shows error `starting child process:invalid
> argument`. This makes commands like `term` and `compile` unusable.

In Windows, a lot of the external tools that are considered standard for
*nix platforms, needs to be provided somehow (compile yourself, get
ready-made executables via the ezwinports project, etc).

For `gdb`, I suggest you try using the one in the MinGW64 project.

Regarding `term`, the easiest alternative for MS-Windows is to use
`shell` instead. At least, that's what I do myself. Instead of bash, you
would be using Windows' shell.

I hope this helped!

Regards,
Sebastián





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72224; Package emacs. (Sun, 04 Aug 2024 07:58:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: yellowPolyp <at> proton.me
Cc: 72224 <at> debbugs.gnu.org
Subject: Re: bug#72224: Two bugs in windows operating system
Date: Sun, 04 Aug 2024 10:57:05 +0300
> Cc: 72224 <at> debbugs.gnu.org
> Date: Sun, 21 Jul 2024 11:54:35 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > Second, when I start dynamic programs like `sh` or `gdb` using `start-process`, Emacs shows error `starting child process:invalid argument`. This makes commands like `term` and `compile` unusable. 
> 
> I cannot reproduce this.  Please show a detailed recipe starting from
> "emacs -Q".  Please also tell which version of Emacs are you using and
> how you invoke Emacs.

Ping!  can you please answer my questions, so we could make progress
with this issue?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#72224; Package emacs. (Sun, 04 Aug 2024 09:11:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: yellowPolyp <yellowPolyp <at> proton.me>
Cc: 72224 <at> debbugs.gnu.org
Subject: Re: bug#72224: Two bugs in windows operating system
Date: Sun, 04 Aug 2024 12:09:28 +0300
[Please use Reply All to reply, to keep the bug tracker CC'ed.]

> Date: Sun, 04 Aug 2024 08:04:16 +0000
> From: yellowPolyp <yellowPolyp <at> proton.me>
> 
> It's a stack exchange question describing the same problem as mine. 
> https://emacs.stackexchange.com/questions/48422 . 

That talks about ansi-term.  ansi-term doesn't work on MS-Windows
(because sub-processes cannot use PTYs to talk to Emacs), and in
particular the stty command will not do what you expect, so the error
is expected.

Your original report said something much more general: that starting
programs with start-process didn't work, including invoking GDB.  If
that was also via ansi-term, then there's nothing more to do here,
it's just a limitation of Emacs on Windows.  To invoke GDB from Emacs,
use "M-x gdb" instead.

Thanks.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 17 Aug 2024 08:31:01 GMT) Full text and rfc822 format available.

Notification sent to yellowPolyp <yellowPolyp <at> proton.me>:
bug acknowledged by developer. (Sat, 17 Aug 2024 08:31:02 GMT) Full text and rfc822 format available.

Message #24 received at 72224-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: yellowPolyp <at> proton.me
Cc: 72224-done <at> debbugs.gnu.org
Subject: Re: bug#72224: Two bugs in windows operating system
Date: Sat, 17 Aug 2024 11:29:20 +0300
> Cc: 72224 <at> debbugs.gnu.org
> Date: Sun, 04 Aug 2024 12:09:28 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> [Please use Reply All to reply, to keep the bug tracker CC'ed.]
> 
> > Date: Sun, 04 Aug 2024 08:04:16 +0000
> > From: yellowPolyp <yellowPolyp <at> proton.me>
> > 
> > It's a stack exchange question describing the same problem as mine. 
> > https://emacs.stackexchange.com/questions/48422 . 
> 
> That talks about ansi-term.  ansi-term doesn't work on MS-Windows
> (because sub-processes cannot use PTYs to talk to Emacs), and in
> particular the stty command will not do what you expect, so the error
> is expected.
> 
> Your original report said something much more general: that starting
> programs with start-process didn't work, including invoking GDB.  If
> that was also via ansi-term, then there's nothing more to do here,
> it's just a limitation of Emacs on Windows.  To invoke GDB from Emacs,
> use "M-x gdb" instead.

No further comments, so I presume the bug was fixed by the above
advice, and I'm therefore closing this bug.  If and when there is new
information about the details, we can reopen it.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Sep 2024 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 180 days ago.

Previous Next


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