From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 08:57:11 2023 Received: (at submit) by debbugs.gnu.org; 3 Mar 2023 13:57:11 +0000 Received: from localhost ([127.0.0.1]:59965 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY5uJ-0000Vs-4U for submit@debbugs.gnu.org; Fri, 03 Mar 2023 08:57:11 -0500 Received: from lists.gnu.org ([209.51.188.17]:41086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY5uH-0000Vk-2R for submit@debbugs.gnu.org; Fri, 03 Mar 2023 08:57:09 -0500 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 1pY5uG-0003o2-P2 for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 08:57:08 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY5uE-0006Cq-IK for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 08:57:08 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6174C5C00C9 for ; Fri, 3 Mar 2023 08:57:04 -0500 (EST) Received: from imap46 ([10.202.2.96]) by compute4.internal (MEProxy); Fri, 03 Mar 2023 08:57:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kowzan.eu; h=cc :content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to; s=fm1; t=1677851824; x=1677938224; bh=C1 IpVofZvIUy3i6zn4iwOw4OUvCgjiUzxfvii0+2+qA=; b=kQvMumqVN9zotKtBms 6P968Bqqfv+7tNmLhsZ/HqQnq7NhG83yX8lAukzk6MzAtJTR6IPZZ+FIHkPaIzgR kzjzYkGqK2qBifCyn8wZFxOl2uy6h/BjDy0GB8sFXm7FXjBuaLdrgPJugESqTLXc XsvccuywDKWz9XCv0r1UPy/ejpjapnIqDu1QOISk04TbLUeuP25Rhz3vH0KBA2p8 4hYYE3I79tX3dI+1BMzvFI6VTTjm4TPUvqHhJy6tmptu+mXPIR83B+sMK84wD3xg 4hni6CNoIt9JmT+XH/LgzODcrzY4yMT8aBavMcTFcO+FWjY3eDAi9P2kffzt/lkL 5mlA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1677851824; x=1677938224; bh=C1IpVofZvIUy3 i6zn4iwOw4OUvCgjiUzxfvii0+2+qA=; b=mflki2NwLZzrppa/e6ksnNr1AXCEx InUTNnFDmFG71ChuV7g9GbrQs0cb0zZ0kaRY1fjy0vsU1Huu0iUZmxR1BfTQxOd0 F01Wq2kc03/JgZA3asuOJPtyQ89M0/1eSW9Nm/cHjSzOZ4GzI2RVGiAK5XPY/RhJ 3xB8z1R4d2bJYrauJ5xlbRuh9oTaWad+rw0AwQn24rBXyrPxZ/5fQwprzvEfRYek gu4JWXWiceYnmpfOSdIjPyKwZbzejN7zwHj2mhNZsGpkO5nzNCuWtoR/M4aV1meP V6vnQigf5qY6qCVRlXttN/7kdfbf3GXXkcd13GAKjx/nHQh68fvwV7hsQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelledgheefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtgfesthhqre dtreerjeenucfhrhhomhepfdfirhiivghgohhriicumfhofiiirghnfdcuoehgrhiivghg ohhriieskhhofiiirghnrdgvuheqnecuggftrfgrthhtvghrnhepkeduhffftdehudffge dvffduvdeludettdelffegjeduteefueeiteelgeeiueeknecuffhomhgrihhnpehgnhhu rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epghhriigvghhorhiisehkohifiigrnhdrvghu X-ME-Proxy: Feedback-ID: ib4114772:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 187AB2A20080; Fri, 3 Mar 2023 08:57:04 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-183-gbf7d00f500-fm-20230220.001-gbf7d00f5 Mime-Version: 1.0 Message-Id: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> Date: Fri, 03 Mar 2023 14:56:32 +0100 From: "Grzegorz Kowzan" To: bug-gnu-emacs@gnu.org Subject: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.28; envelope-from=grzegorz@kowzan.eu; helo=out4-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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=C5=BC=C3=B3=C5=82=C4=87g=C4=99=C5=9Bl=C4=85ja=C5= =BA=C5=84. 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 on Emacs build downloaded from gnu.org/software/emacs/. Best regards, Grzegorz Kowzan In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32) of 2022-09-13 built on AVALON Windowing system distributor 'Microsoft Corp.', version 10.0.22621 System Description: Microsoft Windows 10 Pro (v10.0.2009.22621.1265) Configured using: 'configure --with-modules --without-dbus --with-native-compilation --without-compress-install CFLAGS=3D-O2' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB (NATIVE_COMP present but libgccjit not available) Important settings: value of $LANG: ENU locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 57093 11854) (symbols 48 6707 1) (strings 32 20467 1574) (string-bytes 1 667348) (vectors 16 14095) (vector-slots 8 248973 12770) (floats 8 24 304) (intervals 56 219 0) (buffers 992 10)) From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 09:41:49 2023 Received: (at 61934) by debbugs.gnu.org; 3 Mar 2023 14:41:49 +0000 Received: from localhost ([127.0.0.1]:60025 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY6bU-0001jy-OO for submit@debbugs.gnu.org; Fri, 03 Mar 2023 09:41:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51088) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY6bR-0001jk-P7 for 61934@debbugs.gnu.org; Fri, 03 Mar 2023 09:41:46 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY6bM-0002vl-7S; Fri, 03 Mar 2023 09:41:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=C4fnIwz4D7Ud8dRNNidYWxpg+ArqqKF+8T2plpLFIOQ=; b=DldGOSgDHFsOQ2P4xOKc 1GUgP02FM/II0QpwyHQygKc+hsLM+d5VenmF5b+aoKUJxz1qpYSWyvQkrea1lbT4V3NRfTJzUjw3o rz//5gX+X5cenKlNbctPNsGLZqGAQ0NsNyawMMcWRMBOb+MV1HFlmKM/i2SCyKOSgnkwRN7t6NuMb 0euHCer/LrAHc22qI1pXbxDkxmWuiLCT4OgBDa1lRKv2oenB2sARotat1yO1faQsyXKwBARCvydRn ZO/tJsZy+lfouJKXhJ7GpFweIeSlrl4QYDDDzN5V1EfnvGG7yOv7QXHBbIpJn3ZbOHoCDstJok6Yk 0zHrhVnT13XZRQ==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pY6bL-0005Ib-G6; Fri, 03 Mar 2023 09:41:39 -0500 Date: Fri, 03 Mar 2023 16:41:25 +0200 Message-Id: <83wn3xc2y2.fsf@gnu.org> From: Eli Zaretskii To: "Grzegorz Kowzan" In-Reply-To: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> (grzegorz@kowzan.eu) Subject: Re: bug#61934: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11 References: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61934 Cc: 61934@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 03 Mar 2023 14:56:32 +0100 > From: "Grzegorz Kowzan" > > 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 12:58:01 2023 Received: (at 61934) by debbugs.gnu.org; 3 Mar 2023 17:58:02 +0000 Received: from localhost ([127.0.0.1]:33910 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY9fN-0001SU-F3 for submit@debbugs.gnu.org; Fri, 03 Mar 2023 12:58:01 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:36547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pY9fL-0001SC-H6 for 61934@debbugs.gnu.org; Fri, 03 Mar 2023 12:57:59 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 745FB5C00EE; Fri, 3 Mar 2023 12:57:54 -0500 (EST) Received: from imap46 ([10.202.2.96]) by compute4.internal (MEProxy); Fri, 03 Mar 2023 12:57:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kowzan.eu; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1677866274; x=1677952674; bh=6zNJKahoNXjzVqFtZjdHzaMM3R2uEDevbJ6 PHaeE9yI=; b=BmTNsbncel1cAYy54kIJT2c9/Mw7OTD7QR8oMjkCQjakIa2Zl9/ 2DjB6OfJyfB2HqWwnTGoeWG7k9ym1OtVtOVMp2gA3DRVRPy4CRE1G6ltMO2OsZoy hPKnm4hgYT7Uu0pF/oBcB2qjy2PK0cGEHulUsCK4GKS2kMXZtG7aa7jd44Txo2D3 8QeMnK2gYS2J/K1eri1go8/gwWG71QRXKndEo7nLH+kAvt0gqAFQEcyjsvbVgOI5 k4hPPuFmqHAdu7zWik+TyTq3tSSRco9CXKv51DQgimcp9ec/qb1chijdlAP9/i6Q Q4amooNSNhKG7OOA/tcYuwpDaNUp+zQfQsg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1677866274; x=1677952674; bh=6zNJKahoNXjzVqFtZjdHzaMM3R2uEDevbJ6 PHaeE9yI=; b=frFyts0XJBewocslJgU2lsN8pzuJcedkgN5iIxTEka0hWGxRMEV NGdten1gQ3/DDCWWCxKJZFwp2i66D17Y6uo+NcwxWEa6gz5lTtz/RZ/Aik6VhkRP jSpCxhjWXDDP5CekFDAIGMGsLFdW7O16zEsSTmld4pRbkboosl+bLHV31wjagtcz LYL0rdtT/TY9ApcC5i+pa7IjZpw+oUEXEa0ah0FQkQqXq40V7BNTyWGfYI0u1HPT 1lLlFs2jl3NIljiSiLNHrO5bIzK+JRUkpmJqNiiplrhbcY0vZjFzOnFprzDxJApE SFHavn/A1+z6UGRsLsqo3no8NFOMDw/A6PQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelledguddtudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf ifhriigvghhorhiiucfmohifiigrnhdfuceoghhriigvghhorhiisehkohifiigrnhdrvg huqeenucggtffrrghtthgvrhhnpeehgfeihfelgefgfeeukedvfeelhffgjeetudehvedu ueelgffhfefhhfejheekteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehgrhiivghgohhriieskhhofiiirghnrdgvuh X-ME-Proxy: Feedback-ID: ib4114772:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B1F3B2A20080; Fri, 3 Mar 2023 12:57:53 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-183-gbf7d00f500-fm-20230220.001-gbf7d00f5 Mime-Version: 1.0 Message-Id: <2aad82de-4ab4-452d-a4f1-73a35d0db11e@app.fastmail.com> In-Reply-To: <83wn3xc2y2.fsf@gnu.org> References: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> <83wn3xc2y2.fsf@gnu.org> Date: Fri, 03 Mar 2023 18:57:32 +0100 From: "Grzegorz Kowzan" To: "Eli Zaretskii" Subject: Re: bug#61934: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61934 Cc: 61934@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Thank you for the explanation. Can the code page be changed from within = Emacs or is it set for good at startup? I tried changing the codepage to= cp1250, which can handle all the characters in the directory name, with= appropriate commands but I still get the same errors. When I execute (d= escribe-coding-system) I get: Coding system for saving this buffer: Not set locally, use the default. Default coding system (for new files): * -- windows-1250 (alias: cp1250) Coding system for keyboard input: * -- windows-1250-unix (alias: cp1250-unix) Coding system for terminal output: * -- cp1250 (alias of windows-1250) Coding system for inter-client cut and paste: U -- utf-16le-dos Defaults for subprocess I/O: decoding: * -- windows-1250-dos (alias: cp1250-dos) encoding: * -- windows-1250-unix (alias: cp1250-unix) Priority order for recognizing coding systems when reading files: 1. windows-1250 (alias: cp1250) 2. utf-8 (alias: mule-utf-8 cp65001) ... which looks good to me. On the other hand, I did check that I can execut= e commands from a directory named C:/=C3=BE=C3=B1=C3=9C, which has chara= cters beyond ASCII that are handled by cp1252. Best regards, Grzegorz On Fri, Mar 3, 2023, at 15:41, Eli Zaretskii wrote: >> Date: Fri, 03 Mar 2023 14:56:32 +0100 >> From: "Grzegorz Kowzan" >>=20 >> Calling external commands fails on Emacs under Windows 11 if >> `default-directory' contains non-ASCII characters. Steps to reproduce: >>=20 >> 0. Start emacs -Q >> 1. Create directory C:/za=C5=BC=C3=B3=C5=82=C4=87g=C4=99=C5=9Bl=C4=85= ja=C5=BA=C5=84. >> 2. Enter the directory with dired. >> 3. Press M-! and try executing any command. >> 4. Minibuffer shows error message: "Spawning child process: Exec form= at 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 13:23:50 2023 Received: (at 61934) by debbugs.gnu.org; 3 Mar 2023 18:23:50 +0000 Received: from localhost ([127.0.0.1]:33954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYA4M-0002D3-6u for submit@debbugs.gnu.org; Fri, 03 Mar 2023 13:23:50 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:50931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYA4K-0002Cn-2N for 61934@debbugs.gnu.org; Fri, 03 Mar 2023 13:23:48 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 02C295C007E; Fri, 3 Mar 2023 13:23:42 -0500 (EST) Received: from imap46 ([10.202.2.96]) by compute4.internal (MEProxy); Fri, 03 Mar 2023 13:23:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kowzan.eu; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1677867821; x=1677954221; bh=LcSlZrYYsA6XZbB9QGqx2KcBMQf+I3Yt7/u 2m4ygf8M=; b=Zu8wuJ7dcykSJN++KVr+imz/5oyf6LZKb4//l+0gsJQBP9DLOTf Tt/M7IcLsyYfz46HaoM69d4ej99FLemN2dw2vujpbGM8AHiMHFhKUKXYxgY5Z2Ps ZPkbP+xP40I9O0kggBNdOp0bGihLmOIOCczP7hPMqGao0qmVUqscy5rVZ2NGarLH fxbAtshp/bSmjVL8GhSOa8vWLkj+GUTq0WCGtrp+CRp31L/KeN9K+NPUQ91yIFoT QXlAjAgdJiCBSsmSEb/kbkwidM7x6qFD6yO1ikChJn1OBFLyKF9XSExX7DdbEiGh KDbx4I/Uoz9b+FBV0D+dd0dmhSGuIki5OzQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1677867821; x=1677954221; bh=LcSlZrYYsA6XZbB9QGqx2KcBMQf+I3Yt7/u 2m4ygf8M=; b=mHPr/iNL/5WrRXwLaEBEbZ61axsTA61W2eVDAvjk8hRtpWubUVW 3btUGI4wYLTdvE9+QLgNJmtJ7OFPNqWNJF8A3cNmX4ma/GMYGSP23flEvEBoY6xk N0RN6MUdLct8NCTE64K4Khe4GCN3ApKpl+QNHE3dSz/2tQ2tExhXtF9duQSG/tWD 6pW4NL719doxJ6x/5J/k7kst5/N/7rtEJQ2Frkp80BeWlRvnqEF/kVl6eXjTlVIT gUB58YCvOFJ4vc8LLt6H8HQSWKiGyKJ/UiIv7NFAbvyYNMkwFO7W+x2kZbFAUMO8 wkN660MFDnl5iJrS54MfVrm5XAUAtW/4txA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudelledguddtiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvvefutgfgsehtqhertderreejnecuhfhrohhmpedf ifhriigvghhorhiiucfmohifiigrnhdfuceoghhriigvghhorhiisehkohifiigrnhdrvg huqeenucggtffrrghtthgvrhhnpeehgfeihfelgefgfeeukedvfeelhffgjeetudehvedu ueelgffhfefhhfejheekteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpehgrhiivghgohhriieskhhofiiirghnrdgvuh X-ME-Proxy: Feedback-ID: ib4114772:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id B55162A20085; Fri, 3 Mar 2023 13:23:41 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-183-gbf7d00f500-fm-20230220.001-gbf7d00f5 Mime-Version: 1.0 Message-Id: In-Reply-To: <2aad82de-4ab4-452d-a4f1-73a35d0db11e@app.fastmail.com> References: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> <83wn3xc2y2.fsf@gnu.org> <2aad82de-4ab4-452d-a4f1-73a35d0db11e@app.fastmail.com> Date: Fri, 03 Mar 2023 19:23:07 +0100 From: "Grzegorz Kowzan" To: "Eli Zaretskii" Subject: Re: bug#61934: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 61934 Cc: 61934@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) I changed the system code page globally and it is working now with direc= tories containing my language's special characters. Thank you for the help, Grzegorz On Fri, Mar 3, 2023, at 18:57, Grzegorz Kowzan wrote: > Thank you for the explanation. Can the code page be changed from withi= n=20 > Emacs or is it set for good at startup? I tried changing the codepage=20 > to cp1250, which can handle all the characters in the directory name,=20 > with appropriate commands but I still get the same errors. When I=20 > execute (describe-coding-system) I get: > > Coding system for saving this buffer: > Not set locally, use the default. > Default coding system (for new files): > * -- windows-1250 (alias: cp1250) > > Coding system for keyboard input: > * -- windows-1250-unix (alias: cp1250-unix) > > Coding system for terminal output: > * -- cp1250 (alias of windows-1250) > > Coding system for inter-client cut and paste: > U -- utf-16le-dos > > Defaults for subprocess I/O: > decoding: * -- windows-1250-dos (alias: cp1250-dos) > > encoding: * -- windows-1250-unix (alias: cp1250-unix) > > Priority order for recognizing coding systems when reading files: > 1. windows-1250 (alias: cp1250) > 2. utf-8 (alias: mule-utf-8 cp65001) > ... > > which looks good to me. On the other hand, I did check that I can=20 > execute commands from a directory named C:/=C3=BE=C3=B1=C3=9C, which h= as characters=20 > beyond ASCII that are handled by cp1252. > > Best regards, > Grzegorz > > On Fri, Mar 3, 2023, at 15:41, Eli Zaretskii wrote: >>> Date: Fri, 03 Mar 2023 14:56:32 +0100 >>> From: "Grzegorz Kowzan" >>>=20 >>> Calling external commands fails on Emacs under Windows 11 if >>> `default-directory' contains non-ASCII characters. Steps to reproduc= e: >>>=20 >>> 0. Start emacs -Q >>> 1. Create directory C:/za=C5=BC=C3=B3=C5=82=C4=87g=C4=99=C5=9Bl=C4=85= ja=C5=BA=C5=84. >>> 2. Enter the directory with dired. >>> 3. Press M-! and try executing any command. >>> 4. Minibuffer shows error message: "Spawning child process: Exec for= mat 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 13:32:12 2023 Received: (at 61934) by debbugs.gnu.org; 3 Mar 2023 18:32:12 +0000 Received: from localhost ([127.0.0.1]:33975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYACS-0002Rk-Gy for submit@debbugs.gnu.org; Fri, 03 Mar 2023 13:32:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYACR-0002RZ-BD for 61934@debbugs.gnu.org; Fri, 03 Mar 2023 13:32:11 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYACL-0004Na-DS; Fri, 03 Mar 2023 13:32:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=dESO+DPmKzMjD/L5G259GTUdfU4t7bjpHPxFhBeE084=; b=mRX+8hN+40yq5l+dm6Ic erLCJB6l+J0uER7RQdKRNNyc8KFxX6Ee6KGD4hAzVHM0OGg5fdH/s1yR3Zxu6Ys9beJImAKcqF5nZ GOP7jO0ZKgDyToUedRiDNtKHjjTL1Yv7aFMl2bOU71B7pohgy5BsjQA2SNtfdEjEwk50jw/P5SVO4 srmj+8siLrnd2kCMJc4jrpO7uL30aX/JQDr04SAUG3xCEulBug4GKCkGT3zo7/k2hzPRlsZqNFWA5 WNkY/79IUfLySgYSQsgonohb3oYAFxRfX6ePGVcB1YkFARIa7mmBNigLZ8/caeq284oRvFrJsVBGv 6VWirbAZ9aiMPA==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYACK-000307-Nx; Fri, 03 Mar 2023 13:32:05 -0500 Date: Fri, 03 Mar 2023 20:31:50 +0200 Message-Id: <83r0u5bsa1.fsf@gnu.org> From: Eli Zaretskii To: "Grzegorz Kowzan" In-Reply-To: <2aad82de-4ab4-452d-a4f1-73a35d0db11e@app.fastmail.com> (grzegorz@kowzan.eu) Subject: Re: bug#61934: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11 References: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> <83wn3xc2y2.fsf@gnu.org> <2aad82de-4ab4-452d-a4f1-73a35d0db11e@app.fastmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61934 Cc: 61934@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 03 Mar 2023 18:57:32 +0100 > From: "Grzegorz Kowzan" > Cc: 61934@debbugs.gnu.org > > Thank you for the explanation. Can the code page be changed from within Emacs or is it set for good at startup? I tried changing the codepage to cp1250, which can handle all the characters in the directory name, with appropriate commands but I still get the same errors. When I execute (describe-coding-system) I get: > > Coding system for saving this buffer: > Not set locally, use the default. > Default coding system (for new files): > * -- windows-1250 (alias: cp1250) You cannot change that from inside Emacs, you must change the system-wide ANSI codepage via the Windows settings GUI. That is because Windows will interpret non-ASCII bytes as if they were characters encoded in the system codepage, and that is the problem. > which looks good to me. On the other hand, I did check that I can execute commands from a directory named C:/þñÜ, which has characters beyond ASCII that are handled by cp1252. Yes, this is supported and should work. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 03 14:14:49 2023 Received: (at 61934-done) by debbugs.gnu.org; 3 Mar 2023 19:14:49 +0000 Received: from localhost ([127.0.0.1]:34005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYArg-0003Yc-Sg for submit@debbugs.gnu.org; Fri, 03 Mar 2023 14:14:49 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59906) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pYArf-0003YL-2S for 61934-done@debbugs.gnu.org; Fri, 03 Mar 2023 14:14:48 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYArZ-0002J0-3N; Fri, 03 Mar 2023 14:14:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=deUXgraqmjgON6u4Yz2Ihravqu5qC8Kb7UDuXM/WzxI=; b=CnP4C1pyUNzM fiA9H8iKJjQLTPgFPt0dOamHC5dmG5rHaCJGz2SuBAP87FrgbvbJQosYzZVcz4a9O8cs8K2M1edtc JZa3QPr9LXBu/FdiiA2McykFtPJtHWxu9K5kEixW5FYdY3JjVGF7EQIKbRlDgnrlzhLsIfFy4NGy4 SfksVS8wZJ1hg8c3vqPeldUlRKoPEon67aKHJDZL8IkKU6H8vj62L56ZtXmXgKJ7aoOpS8xeAwtql /O07NkfH9gx6FRubTcRYQC7OnQfOw48v1CnwJS8jACwRtb/7m3kFsdFaVxmUzTJUpl3YmIVJabk6w 28yb4FCou17mZujRqwruqw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYArY-0001b8-IM; Fri, 03 Mar 2023 14:14:40 -0500 Date: Fri, 03 Mar 2023 21:14:26 +0200 Message-Id: <83pm9pbqb1.fsf@gnu.org> From: Eli Zaretskii To: "Grzegorz Kowzan" In-Reply-To: (grzegorz@kowzan.eu) Subject: Re: bug#61934: 28.2; Exec format error when `default-directory` contains non-ASCII characters on Windows 11 References: <6ce62338-467e-44d1-a503-15a0dc53b4cd@app.fastmail.com> <83wn3xc2y2.fsf@gnu.org> <2aad82de-4ab4-452d-a4f1-73a35d0db11e@app.fastmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 61934-done Cc: 61934-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 03 Mar 2023 19:23:07 +0100 > From: "Grzegorz Kowzan" > Cc: 61934@debbugs.gnu.org > > I changed the system code page globally and it is working now with directories containing my language's special characters. Thanks, so I'm therefore closing this bug report. From unknown Fri Aug 15 21:25:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 01 Apr 2023 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator