GNU bug report logs - #71500
28.2; Can't create/open .gpg file name contains non-ascii encoding in windows

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Tatsuya Kumazawa <billy.hotwind@HIDDEN>; dated Wed, 12 Jun 2024 04:45:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 71500 <at> debbugs.gnu.org:


Received: (at 71500) by debbugs.gnu.org; 29 Jun 2024 11:25:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 29 07:25:48 2024
Received: from localhost ([127.0.0.1]:37185 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sNWDE-00020A-0h
	for submit <at> debbugs.gnu.org; Sat, 29 Jun 2024 07:25:48 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41080)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sNWDC-0001zw-Ep
 for 71500 <at> debbugs.gnu.org; Sat, 29 Jun 2024 07:25:47 -0400
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 <eliz@HIDDEN>)
 id 1sNWD5-0004uD-CU; Sat, 29 Jun 2024 07:25:39 -0400
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=Sce9G6RMKuGPnbISOvbDvOCy+vsj2s3hiTNJVmpMnHk=; b=DN6/XwIvH3Up
 GqNVfE5/z6KPL97EY7JzrToVYz4xJdiPprYAvm3jYw0pxBpoUhv+NrHiOz33CfFg4At8u9ixUXsHf
 FylXijTVe9m79YEDRqxwLY5Qk0aEiBI1b8PSB1dgf9j8YReF6R1LGaI4tlkQQIcoBdiDeqo8hF4tf
 bdHB5pLlcvY71plFsMid0cfhTIkJe6v3QH459adIfJIpwUzIRi/14f2FGO772ARBXjYnamM/SK1wa
 TdhiM1YT7J6q/vB0Uyr+qIdtdfYfC0FDkMH+HzlzyMYQPjFwCvJG9JirX/WtPdPW/uu62HrACRNjL
 7GxtvhjB58lY3l+CCaHoYw==;
Date: Sat, 29 Jun 2024 14:25:30 +0300
Message-Id: <868qyoj8id.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Kazuhiro Ito <kzhr@HIDDEN>
In-Reply-To: <85ikxt485b.wl--xmue@HIDDEN> (message from Kazuhiro Ito on
 Fri, 28 Jun 2024 20:30:08 +0900)
Subject: Re: bug#71500: 28.2;
 Can't create/open .gpg file name contains non-ascii encoding in
 windows
References: <CAFWM=uXfXi8-8MEsE7ODOvf32uYZbN=dYUrMq_SQ-6XyuF7ezg@HIDDEN>
 <86sexi1tu0.fsf@HIDDEN>
 <867cea7shh.fsf@HIDDEN> <85ikxt485b.wl--xmue@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71500
Cc: billy.hotwind@HIDDEN, 71500 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Fri, 28 Jun 2024 20:30:08 +0900
> From: Kazuhiro Ito <kzhr@HIDDEN>
> Cc: billy.hotwind@HIDDEN, eliz@HIDDEN
> 
> > Ping!  Did you have a chance to try Emacs 30 (now on the emacs-30
> > branch of the Emacs Git repository)?
> 
> Unfortunately, the issue is not resolved.
> 
> As Tatsuya wrote, epg--start function calls gpg2 program with setting
> :coding property to raw-text, thus each argument should be encoded in
> proper coding system by a caller.  The problem would occur on any OS
> whose file name coding system was not utf-8.
> 
> For example, in case of epg-decrypt-file, following change is required
> if we need to set :coding property to raw-text for ENCODING.
> 
> diff --git a/lisp/epg.el b/lisp/epg.el
> index 7bec91f616d..59870761565 100644
> --- a/lisp/epg.el
> +++ b/lisp/epg.el
> @@ -1468,7 +1468,10 @@ epg-decrypt-file
>        (progn
>  	(setf (epg-context-output-file context)
>                (or plain (make-temp-file "epg-output")))
> -	(epg-start-decrypt context (epg-make-data-from-file cipher))
> +	(epg-start-decrypt context
> +                           (epg-make-data-from-file
> +                            (encode-coding-string
> +                             cipher file-name-coding-system)))
>  	(epg-wait-for-completion context)
>  	(epg--check-error-for-decrypt context)
>  	(unless plain

Thanks, but this doesn't look right to me.  The problem is likely in
the fact that epg--start sets the encoding/decoding for the epg
process to raw-text in a way that is too broad: it affects not only
how we encode and decode text sent to and received from GnuPG, but
also how its command-line arguments are encoded.  And that's not what
we want.

So I think the right fix is in epg--start: instead of setting :coding
as part of the make-process call, it should call
set-process-coding-system _after_ the make-process call, so that
raw-text will affect only the text we send and receive from gpg.

Can you try such a change and see if it fixes the problem?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71500; Package emacs. Full text available.

Message received at 71500 <at> debbugs.gnu.org:


Received: (at 71500) by debbugs.gnu.org; 28 Jun 2024 11:30:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 28 07:30:16 2024
Received: from localhost ([127.0.0.1]:44806 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sN9nz-0006b3-Ec
	for submit <at> debbugs.gnu.org; Fri, 28 Jun 2024 07:30:15 -0400
Received: from mta-snd-e06.auone-net.jp ([111.86.247.6]:40077)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <kzhr@HIDDEN>) id 1sN9nv-0006Gg-WF
 for 71500 <at> debbugs.gnu.org; Fri, 28 Jun 2024 07:30:14 -0400
Received: from kzhr.d1.dion.ne.jp by mta-snd-e06.auone-net.jp with ESMTP
 id <20240628113009052.RWVN.9150.kzhr.d1.dion.ne.jp@HIDDEN>; 
 Fri, 28 Jun 2024 20:30:09 +0900
Date: Fri, 28 Jun 2024 20:30:08 +0900
Message-ID: <85ikxt485b.wl--xmue@HIDDEN>
From: Kazuhiro Ito <kzhr@HIDDEN>
To: 71500 <at> debbugs.gnu.org
Subject: Re: bug#71500: 28.2;
 Can't create/open .gpg file name contains non-ascii encoding in
 windows
In-Reply-To: <867cea7shh.fsf@HIDDEN>
References: <CAFWM=uXfXi8-8MEsE7ODOvf32uYZbN=dYUrMq_SQ-6XyuF7ezg@HIDDEN>
 <86sexi1tu0.fsf@HIDDEN> <867cea7shh.fsf@HIDDEN>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue)
 FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0
 Emacs/30.0.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset=SHIFT_JIS
Content-Transfer-Encoding: base64
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d1.dion.ne.jp;
 s=default-1; t=1719574209; 
 bh=3+mipLy3IuXUlEXqBMe6lfmd6dx+61GS9fhI26OLXaE=;
 h=Date:From:Cc:To:Subject:In-Reply-To:References;
 b=U7tZaYStT7mh9SQP4YLYX8q//M+zk8Vf88ikckp7/634PGWLF063nWOcS+H/nyyT3Jw+7tMy
 3KcOZ+bhB2pWmVOp6czwvW7IFlvnE26Ry7Yr/u9DXDu+Bkr24VWAkLMmabaYLBjGN216Lfsb8z
 6v9FNMR//szCs96APctpDh7IjCbwVcwlgbEl/nuOfivtTXzRuBeFn17sgBHwa44lUFo0Tlva1S
 pE+Yf7CYABHD9+VweHF7VV76JPtTT7YzuCePzQwEj0PHKxUTmfv6LZ1UMxIfz7jWW+bIrZeFUS
 G39v+kY0xNWhBPwUaB3JZZSsIwL/7wwC4JUTtMV5kALuaR5g==
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71500
Cc: eliz@HIDDEN, billy.hotwind@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

PiBQaW5nISAgRGlkIHlvdSBoYXZlIGEgY2hhbmNlIHRvIHRyeSBFbWFjcyAzMCAobm93IG9uIHRo
ZSBlbWFjcy0zMA0KPiBicmFuY2ggb2YgdGhlIE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Xh0DQo+ID4gPiANCj4gPiA+IHRvDQo+ID4gPiANCj4gPiA+
IDY3MzogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
IDpjb2RpbmcNCj4gPiA+ICcocmF3LXRleHQgLiBjcDkzMikNCj4gPiA+IA0KPiA+ID4gKENQOTMy
IGlzIGphcGFuZXNlIGNoYXJhY3RvciBjb2RlIG9mIHdpbmRvd3MpDQo+ID4gPiBzZWVtc2x5IHdv
cmtlZCBpbiBteSBlbnZpcm9ubWVudC4NCj4gPiA+IA0KPiA+ID4gDQo+ID4gPiANCj4gPiA+IEl0
IG1pZ2h0IGJlIGdvb2QgZnJvbSBjcDkzMiB0byBzeXN0ZW0gcHJvY2VzcyBlbmNvZGluZyBmb3Ig
bXVsdGlsYW5ndWFnZT8NCj4gPiANCj4gPiBUaGVyZSB3ZXJlIHNvbWUgZW5jb2RpbmcgcHJvYmxl
bXMgaW4gZXBnIHRoYXQgd2VyZSBmaXhlZCByZWNlbnRseSBpbg0KPiA+IHRoZSBkZXZlbG9wbWVu
dCBzb3VyY2VzLiAgQ2FuIHRyeSBFbWFjcyAzMCBmcm9tIHRoZSBtYXN0ZXIgYnJhbmNoIG9mDQo+
ID4gdGhlIEVtYWNzIEdpdCByZXBvc2l0b3J5IGFuZCBzZWUgaWYgdGhlIHByb2JsZW0gc3RpbGwg
ZXhpc3RzIHRoZXJlPw0K




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71500; Package emacs. Full text available.

Message received at 71500 <at> debbugs.gnu.org:


Received: (at 71500) by debbugs.gnu.org; 27 Jun 2024 07:30:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 27 03:30:38 2024
Received: from localhost ([127.0.0.1]:40885 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sMjaX-0005qU-OL
	for submit <at> debbugs.gnu.org; Thu, 27 Jun 2024 03:30:38 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44490)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sMjaO-0005q9-Sc
 for 71500 <at> debbugs.gnu.org; Thu, 27 Jun 2024 03:30:37 -0400
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 <eliz@HIDDEN>)
 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==;
Date: Thu, 27 Jun 2024 10:30:18 +0300
Message-Id: <867cea7shh.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: billy.hotwind@HIDDEN
In-Reply-To: <86sexi1tu0.fsf@HIDDEN> (message from Eli Zaretskii on Wed, 12
 Jun 2024 10:52:23 +0300)
Subject: Re: bug#71500: 28.2;
 Can't create/open .gpg file name contains non-ascii encoding in
 windows
References: <CAFWM=uXfXi8-8MEsE7ODOvf32uYZbN=dYUrMq_SQ-6XyuF7ezg@HIDDEN>
 <86sexi1tu0.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71500
Cc: 71500 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Ping!  Did you have a chance to try Emacs 30 (now on the emacs-30
branch of the Emacs Git repository)?

> Cc: 71500 <at> debbugs.gnu.org
> Date: Wed, 12 Jun 2024 10:52:23 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Tatsuya Kumazawa <billy.hotwind@HIDDEN>
> > 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.
> 
> 
> 
> 




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71500; Package emacs. Full text available.

Message received at 71500 <at> debbugs.gnu.org:


Received: (at 71500) by debbugs.gnu.org; 12 Jun 2024 07:52:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 12 03:52:55 2024
Received: from localhost ([127.0.0.1]:37467 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sHImt-0004h3-2m
	for submit <at> debbugs.gnu.org; Wed, 12 Jun 2024 03:52:55 -0400
Received: from eggs.gnu.org ([209.51.188.92]:34950)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sHImp-0004go-VG
 for 71500 <at> debbugs.gnu.org; Wed, 12 Jun 2024 03:52:52 -0400
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 <eliz@HIDDEN>)
 id 1sHIml-0002gi-Rt; Wed, 12 Jun 2024 03:52:47 -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=HL71WyfvJY9l1NFg+Q+iD/5TLiVjZ2lkqP0ouZWV0w4=; b=OD11zCDWDT8Xy4pAg++Q
 2RZeM7JkAvql81kv5vtRwYPwJ2WbnIOa+2UczUKnBDfInCSCYWJKujwQgqhRpjWEDv5yEanVj4rlb
 loVDJzMVz9tOvyrmPPaGV0DsK2SMLAB/Xg9lJl2lbyRjm7FMavx454OPcZ10FIfkN5ybB56HrJlpd
 KUGRdazwW0XQZDTTIlPBmb0G9KXfij6r8nDr1za4xo+l5X3IoWUIXYZfoZy4udEpTeVxey5ynH3h8
 Udb3JtdptecWwk61GkR+/IRZ/5rtC3RqdRoIeW+rm7UAu4KIZhzdywAU/z9J9+jBaaRfdLUAf7H/f
 faKvVbIDkQYPUg==;
Date: Wed, 12 Jun 2024 10:52:23 +0300
Message-Id: <86sexi1tu0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Tatsuya Kumazawa <billy.hotwind@HIDDEN>
In-Reply-To: <CAFWM=uXfXi8-8MEsE7ODOvf32uYZbN=dYUrMq_SQ-6XyuF7ezg@HIDDEN>
 (message from Tatsuya Kumazawa on Tue, 11 Jun 2024 22:35:23 +0900)
Subject: Re: bug#71500: 28.2;
 Can't create/open .gpg file name contains non-ascii encoding in
 windows
References: <CAFWM=uXfXi8-8MEsE7ODOvf32uYZbN=dYUrMq_SQ-6XyuF7ezg@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71500
Cc: 71500 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Tatsuya Kumazawa <billy.hotwind@HIDDEN>
> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71500; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Jun 2024 04:44:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 12 00:44:32 2024
Received: from localhost ([127.0.0.1]:37155 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sHFqa-0007ee-7G
	for submit <at> debbugs.gnu.org; Wed, 12 Jun 2024 00:44:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:59872)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <billy.hotwind@HIDDEN>) id 1sH8AX-0005ne-BW
 for submit <at> debbugs.gnu.org; Tue, 11 Jun 2024 16:32:37 -0400
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 <billy.hotwind@HIDDEN>)
 id 1sH1f1-0006zJ-Kr
 for bug-gnu-emacs@HIDDEN; Tue, 11 Jun 2024 09:35:39 -0400
Received: from mail-qt1-x831.google.com ([2607:f8b0:4864:20::831])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <billy.hotwind@HIDDEN>)
 id 1sH1ez-0004Oc-Ku
 for bug-gnu-emacs@HIDDEN; Tue, 11 Jun 2024 09:35:39 -0400
Received: by mail-qt1-x831.google.com with SMTP id
 d75a77b69052e-4405a5425baso14308851cf.2
 for <bug-gnu-emacs@HIDDEN>; Tue, 11 Jun 2024 06:35:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718112936; x=1718717736; darn=gnu.org;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=AzSjYoFcCqt/sd4vnDJUDlR/kOLjCOUkKpHdo/aPqWc=;
 b=Q5K3tS3DwYTrNtqu6vQXFKg8vz25B0J4CqzaHStQuDJYKoUav3bzY0c+kQKuSfHg7N
 nwIjmOzEIgwg0KM/KnE98j3iJ+myEsoVDcL5QS6siOtWPJf0+ubf5pbe6ZVOGN9CRRCj
 JkFXTQGSSlgs9orR53XQPHZY2uCN1NeWmBZeUb680TI8PL/Dklix7qn+s/qn14v6WiuQ
 r70QGJLeP5F/jQf4HvFid5RCo+S9OOKmKBpTr3trRtumhnmlzcWI3m1wNkNW8kU/ANIx
 dufokOL2MA+iMyAv5Fj2LTrFwEhE5N28ZxH3FeRMsMLxykFW5L5ZtRPlu/jq87PnORti
 Ghgg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718112936; x=1718717736;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=AzSjYoFcCqt/sd4vnDJUDlR/kOLjCOUkKpHdo/aPqWc=;
 b=MA26oVLuT1JnU4lSQwxWfHHcUw/5GzO7NxDJkxCj5PoHrwsTVrQfSWIKFMK9gVNy71
 V+0Q8Bzzk2AnROr80iaX4Qate69GJrMky3RGp4kF7upT535VXQxxfYsDC+wMzVw0v27s
 orThXxcYeV+0LaQqfmnlQ+OXuux+7znCasj6BaCK18ph9d9SPUV0kUoCHzNdsUeHUs9y
 DHmor2DlV2Y3b+QI6/utVDoalqvrcO7nrlZlx5JR4jd9i9gVYQqYryUBoEaNoDC6shrE
 KhbJVvjc5pt+s/KaGRIARx2h5X/rFNTy42k1JjyWxIdcxSe8wu9L5wzdnMMCqYp1QslO
 lUXw==
X-Gm-Message-State: AOJu0YzH/YmDY9FNoK2LEkWjWx+md6kIfQPRIT6pk9CrA21InN1HN9+t
 Z1/0p8g8qLjImjM6g2RnHvYp82dbPNuT83xdxF3mProL9ysLKXVuEOZ0lcsY1xeZhcfsTmWStBk
 EeQVdZcM0qkZEEf8gRLbvDRIzwOVb0XGhutM=
X-Google-Smtp-Source: AGHT+IHOI3lx8zVVfXTenqQq118DndiFFvvsrJIyq09Dbtsq3hKcpRHjIKl7reWIe2wiNMS9Z1w7w3YJGsJL0oDSo50=
X-Received: by 2002:ac8:5fcf:0:b0:440:5809:a562 with SMTP id
 d75a77b69052e-4405809a8e4mr99573521cf.53.1718112935760; Tue, 11 Jun 2024
 06:35:35 -0700 (PDT)
MIME-Version: 1.0
From: Tatsuya Kumazawa <billy.hotwind@HIDDEN>
Date: Tue, 11 Jun 2024 22:35:23 +0900
Message-ID: <CAFWM=uXfXi8-8MEsE7ODOvf32uYZbN=dYUrMq_SQ-6XyuF7ezg@HIDDEN>
Subject: 28.2; Can't create/open .gpg file name contains non-ascii encoding in
 windows
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::831;
 envelope-from=billy.hotwind@HIDDEN; helo=mail-qt1-x831.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 12 Jun 2024 00:44:30 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

When I save .gpg file contains non-ASCII(eg: e:/=E3=81=82.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:/=E3=81=82.gpg, I got

----
Error while decrypting with "e:/msys2/usr/bin/gpg.exe":

gpg: can't open 'e:/=E9=82=B5=EF=BD=BA=E7=B9=9D=EF=BD=BBgpg': 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?

(Sorry, I don't know emacs well)


In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
 of 2022-09-14 built on AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.22631
System Description: Microsoft Windows 10 Pro (v10.0.2009.22631.3672)

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: JPN
  locale-coding-system: cp932

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  global-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
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(mailalias mailclient browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util url-parse
url-vars mailcap qp pp shadow sort mail-extr emacsbug message rmc puny
dired dired-loaddefs rfc822 mml mml-sec epa derived epg cl-extra
help-mode 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 japan-util 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 94210 14660)
 (symbols 48 8115 2)
 (strings 32 24243 3223)
 (string-bytes 1 785123)
 (vectors 16 22517)
 (vector-slots 8 1119837 217090)
 (floats 8 31 74)
 (intervals 56 1138 23)
 (buffers 992 15))




Acknowledgement sent to Tatsuya Kumazawa <billy.hotwind@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#71500; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 29 Jun 2024 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.