From: Eli Zaretskii <eliz@gnu.org>
To: "Grzegorz Kowzan" <grzegorz@kowzan.eu>
Cc: 61934@debbugs.gnu.org
Subject: bug#61934: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11
Date: Fri, 03 Mar 2023 16:41:25 +0200 [thread overview]
Message-ID: <83wn3xc2y2.fsf@gnu.org> (raw)
In-Reply-To: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> (grzegorz@kowzan.eu)
> Date: Fri, 03 Mar 2023 14:56:32 +0100
> From: "Grzegorz Kowzan" <grzegorz@kowzan.eu>
>
> Calling external commands fails on Emacs under Windows 11 if
> `default-directory' contains non-ASCII characters. Steps to reproduce:
>
> 0. Start emacs -Q
> 1. Create directory C:/zażółćgęśląjaźń.
> 2. Enter the directory with dired.
> 3. Press M-! and try executing any command.
> 4. Minibuffer shows error message: "Spawning child process: Exec format error"
This is expected. Emacs on Windows supports starting programs only if
the command-line arguments, including the program's file name, can be
encoded in the system's codepage. According to this bug report, your
system codepage is 1252, and the file name you show cannot be encoded
using that codepage.
This is a limitation of how Emacs on Windows invokes programs, but the
root cause is that many programs that run on Windows only support the
current codepage, and cannot support UTF-8 due to Windows misfeatures.
Sorry.
next prev parent reply other threads:[~2023-03-03 14:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-03 13:56 bug#61934: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11 Grzegorz Kowzan
2023-03-03 14:41 ` Eli Zaretskii [this message]
2023-03-03 17:57 ` Grzegorz Kowzan
2023-03-03 18:23 ` Grzegorz Kowzan
2023-03-03 19:14 ` Eli Zaretskii
2023-03-03 18:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83wn3xc2y2.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=61934@debbugs.gnu.org \
--cc=grzegorz@kowzan.eu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).