From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71500: 28.2; Can't create/open .gpg file name contains non-ascii encoding in windows Date: Thu, 27 Jun 2024 10:30:18 +0300 Message-ID: <867cea7shh.fsf@gnu.org> References: <86sexi1tu0.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14459"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71500@debbugs.gnu.org To: billy.hotwind@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 27 09:31:16 2024 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 1sMjb9-0003cc-Lj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 27 Jun 2024 09:31:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sMjav-00050T-Gk; Thu, 27 Jun 2024 03:31:01 -0400 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 1sMjau-000505-3Q for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2024 03:31:00 -0400 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 1sMjat-0003Xi-R6 for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2024 03:30:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sMjaw-0005r8-CN for bug-gnu-emacs@gnu.org; Thu, 27 Jun 2024 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jun 2024 07:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71500 X-GNU-PR-Package: emacs Original-Received: via spool by 71500-submit@debbugs.gnu.org id=B71500.171947343822479 (code B ref 71500); Thu, 27 Jun 2024 07:31:02 +0000 Original-Received: (at 71500) by debbugs.gnu.org; 27 Jun 2024 07:30:38 +0000 Original-Received: from localhost ([127.0.0.1]:40885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMjaX-0005qU-OL for submit@debbugs.gnu.org; Thu, 27 Jun 2024 03:30:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMjaO-0005q9-Sc for 71500@debbugs.gnu.org; Thu, 27 Jun 2024 03:30:37 -0400 Original-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 1sMjaG-0002Ps-If; Thu, 27 Jun 2024 03:30:20 -0400 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=8KZsLuBaK/HyGkPw7q+EskS1OV/ntEPo2LnNfJAV+FI=; b=LP6F9z3RmhyLsIpvQED6 9eXlqT0L1Oj6kwX4uwuX7giY6iAtVtcWrO8kZPga3pWHWl1vC0ZgwTSXUepyKC4h7qTzH3rXtg8w1 7HmgEDU7iJocwaHzRaybNtYx6iT2X8R8q5WlH6n0ZP75Y6/q7eQ6b9k6rgD2jnE3yQ52XyoT66n4P l9uqKuxfgqGX0C1bM39MozQkNA9pVN7tdkxJKmILtCzoronp1qYyu397d8N4jZqkDOyN/JzXUvFzB LdIf+VtKjOBLjSjEQYztUoEZZm97h8chk+zAj/7ibLaTofxmJkQM2jWvDAYBLl0JB304unL1A4Df0 i7vLpB9dasQz2A==; In-Reply-To: <86sexi1tu0.fsf@gnu.org> (message from Eli Zaretskii on Wed, 12 Jun 2024 10:52:23 +0300) 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:287990 Archived-At: Ping! Did you have a chance to try Emacs 30 (now on the emacs-30 branch of the Emacs Git repository)? > Cc: 71500@debbugs.gnu.org > Date: Wed, 12 Jun 2024 10:52:23 +0300 > From: Eli Zaretskii > > > From: Tatsuya Kumazawa > > Date: Tue, 11 Jun 2024 22:35:23 +0900 > > > > When I save .gpg file contains non-ASCII(eg: e:/あ.gpg). > > > > I got message below > > (It happens anytime when user name contains non-ASCII > > (it must to change epg-gpg-home-directory to ASCII only path)) > > > > ---- > > Error while encrypting with "e:/msys2/usr/bin/gpg.exe": > > > > gpg: can't create 'c:/Users/(my name with CP932 encoded by > > UTF-8)/AppData/Local/Temp/epg-output9UGAFQ': No such file or directory > > gpg: symmetric encryption of '[stdin]' failed: No such file or directory > > ---- > > > > > > When I open e:/あ.gpg, I got > > > > ---- > > Error while decrypting with "e:/msys2/usr/bin/gpg.exe": > > > > gpg: can't open 'e:/邵コ繝サgpg': No such file or directory > > gpg: decrypt_message failed: No such file or directory > > ---- > > > > It seems UTF-8 encode by CP932 binary sequence. > > > > share\emacs\28.2\lisp\epg.el > > > > 673: :coding 'raw-text > > > > to > > > > 673: :coding > > '(raw-text . cp932) > > > > (CP932 is japanese charactor code of windows) > > seemsly worked in my environment. > > > > > > > > It might be good from cp932 to system process encoding for multilanguage? > > There were some encoding problems in epg that were fixed recently in > the development sources. Can try Emacs 30 from the master branch of > the Emacs Git repository and see if the problem still exists there? > > In any case, on MS-Windows Emacs can only support GPG-encoding of file > names that can be encoded in your system codepage, due to limitations > of how Emacs on Windows invokes sub-processes. So this will only work > of cp932 is your system codepage. > > > >