From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michal--- via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs 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 Message-ID: <000701db5dec$b8751ef0$295f5cd0$@0lock.xyz> References: <000001db5ab4$06cec970$146c5c50$@0lock.xyz> <3gvOgDDbA00XBG4Xyu7q8lDJKQVYNo4pJ_Uzu35u0KNS8rhQ9PrenO2Kcz7GDHPNtUng9gnBpgPXtHMty_d_Bw==@protonmail.internalid> <86a5cdnfwc.fsf@gnu.org> <003001db5d81$a8f144b0$fad3ce10$@0lock.xyz> <87F91035-E0D9-4650-B332-10E4E8AD0AEF@0lock.xyz> <86ed1kghej.fsf@gnu.org> Reply-To: michal@0lock.xyz Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32086"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75207@debbugs.gnu.org To: 'Eli Zaretskii' Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 16:23:29 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tTjWI-00088N-Ew for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 16:23:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTjVx-0004z2-FT; Fri, 03 Jan 2025 10:23:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTjVu-0004yb-Ln for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 10:23:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTjVu-0001RK-DG for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 10:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=GJS5AS55bBPqvqrQJ1VAlmi0BXukjdA6oPC/rkY59dI=; b=OFEfihRpbOvHAFYYgLwSeO/xXNi28OtLFstuuWaX5xev8Dcl+iahOjSylQBQnOQo3xUWbaQ2p0e9vG6tWbqsIxeCJSEiJ7E2WqRi+3CYchBhaRlnHJb/Uttbp/arF2YonBmPnA/+6z6yFnT5FZ5jGl4+hDOWsOsfufW1O8EJm27/8XExswWDPcZqRLCK0HbIMfmcXDJiXK0L4E5gaPb8DcdkX8vBtdOydPj0f/sSKu+IKzLtOMjAOB/WTjbhwzcydlC34kHjr9cS93VcCsHiFhPV9I2jFgT/OCtfw2F6I/j0pi+G0FFTVHvfySHkq9oJouOL1lYoIE6wiBaaCb6m7g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTjVu-0005WP-6A for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 10:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: michal@0lock.xyz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2025 15:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75207 X-GNU-PR-Package: emacs Original-Received: via spool by 75207-submit@debbugs.gnu.org id=B75207.173591777221166 (code B ref 75207); Fri, 03 Jan 2025 15:23:02 +0000 Original-Received: (at 75207) by debbugs.gnu.org; 3 Jan 2025 15:22:52 +0000 Original-Received: from localhost ([127.0.0.1]:51603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTjVj-0005VF-A1 for submit@debbugs.gnu.org; Fri, 03 Jan 2025 10:22:52 -0500 Original-Received: from mail-4018.proton.ch ([185.70.40.18]:51397) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTim0-0002ec-4I for 75207@debbugs.gnu.org; Fri, 03 Jan 2025 09:35:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0lock.xyz; s=protonmail; t=1735914929; x=1736174129; bh=GJS5AS55bBPqvqrQJ1VAlmi0BXukjdA6oPC/rkY59dI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=PQjktfe4fW0E2HcEroVIW9oCRWwHIE7bOgRnKy/DmYxfrC21/i3wgAq7qDnaoKItG eDiTe/wCNacQYsPekp5sGaIHpgkNsWn3IgJmzlQV1RB8sK2mFZeNtkJNd+eXboiNIV Szi0wO/4cibiscxw1S+SXqCyA1Tbr7nOteYU46QBF908TgaEP6L0ddSggGlXOSrx1B JYyHzUJaOGisd+YNSvujsPZumYI2kMg3jKyhv15Nwes4nwZo4UZVJxetkQ707WNxFg Fs4AcR6VyWHQtES3rz45TKjRpm0Rz8J1sIopHWjxioGmVT9ZNo14u8BazFKacTTR3r 7A5/oLedpaFgQ== In-Reply-To: <86ed1kghej.fsf@gnu.org> Feedback-ID: 123495485:user:proton X-Pm-Message-ID: 2d6f27744493f0b7a8779b9f26761b036e2a4812 X-Mailman-Approved-At: Fri, 03 Jan 2025 10:22:49 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298287 Archived-At: I've just built Emacs on somewhat new revision (577714e3fe) and cannot repr= o 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 infl= uences 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 som= e 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: >=20 > M-: w32-multibyte-code-page RET > M-: locale-coding-system RET > M-: file-name-coding-system RET > M-: default-file-name-coding-system RET >=20 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 migh= t > 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. =20 > 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.