From: michal--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 'Eli Zaretskii' <eliz@gnu.org>
Cc: 75207@debbugs.gnu.org
Subject: bug#75207: Fwd: bug#75207: 29.4; Path conversion from native codepage to UTF-8 fails when Windows is set by default to UTF-8
Date: Fri, 03 Jan 2025 14:35:26 +0000 [thread overview]
Message-ID: <000701db5dec$b8751ef0$295f5cd0$@0lock.xyz> (raw)
In-Reply-To: <86ed1kghej.fsf@gnu.org>
I've just built Emacs on somewhat new revision (577714e3fe) and cannot repro it there.
Tag emacs-29.1 does not build by default on Windows so I didn't check.
My theory is that maybe the codepage of the machine Emacs was built on influences this??
Or this has just been fixed on the latest version.
I debugged a bit and it looks like w32_ansi_code_page is set to 1252 at some point.
> OK. I think I see the problem (and it is not specific to UTF-8 codepage), but
> just to be sure, please show some more values:
>
> M-: w32-multibyte-code-page RET
> M-: locale-coding-system RET
> M-: file-name-coding-system RET
> M-: default-file-name-coding-system RET
>
M-: w32-multibyte-code-page -> 0
M-: locale-coding-system -> cp65001
M-: file-name-coding-system -> nil
M-: default-file-name-coding-system -> cp65001
> We think that PATH is encoded in Windows-1252 codepage, and the question
> is why and where do we err. The above additional values I ask about might
> help answer that question.
I can say for sure that it is not, API monitor trace confirms this as well as some
basic Win32 programs.
getenv("PATH") returns proper string, respecting the active code page.
> If I send you a C-level patch, are you able to build Emacs after patching it,
> preferably the master branch of our Git repository?
Sure.
next prev parent reply other threads:[~2025-01-03 14:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-30 12:12 bug#75207: 29.4; Path conversion from native codepage to UTF-8 fails when Windows is set by default to UTF-8 michal--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-30 19:13 ` Eli Zaretskii
[not found] ` <003001db5d81$a8f144b0$fad3ce10$@0lock.xyz>
2025-01-03 11:49 ` bug#75207: Fwd: " Michał Lach via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-03 13:23 ` Eli Zaretskii
2025-01-03 14:35 ` michal--- via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2025-01-03 15:25 ` Eli Zaretskii
2025-01-04 9:30 ` Eli Zaretskii
2025-01-04 17:37 ` michal--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-05 5:58 ` 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='000701db5dec$b8751ef0$295f5cd0$@0lock.xyz' \
--to=bug-gnu-emacs@gnu.org \
--cc=75207@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=michal@0lock.xyz \
/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).