]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix non-ASCII filename operatiion on EasyPG (bug#71500)
authorKazuhiro Ito <kzhr@d1.dion.ne.jp>
Sat, 29 Jun 2024 11:56:02 +0000 (20:56 +0900)
committerEshel Yaron <me@eshelyaron.com>
Mon, 1 Jul 2024 07:42:53 +0000 (09:42 +0200)
* lisp/epg.el (epg--start): Don't encode command-line arguments for
gpg2 program in raw-text.

(cherry picked from commit 73898f0214c9fa7f6216fc03dfdaccf67c6d0e03)

lisp/epg.el

index 7bec91f616df920776877db1b561a6417fb777e6..cf59f03c724d2c0cc90cb67d389259fe40713d5d 100644 (file)
@@ -676,10 +676,11 @@ callback data (if any)."
                                    :command (cons (epg-context-program context)
                                                   args)
                                    :connection-type 'pipe
-                                   :coding 'raw-text
+                                   :coding '(raw-text . nil)
                                    :filter #'epg--process-filter
                                    :stderr error-process
                                    :noquery t))))
+    (set-process-coding-system process 'raw-text 'raw-text)
     (setf (epg-context-process context) process)))
 
 (defun epg--process-filter (process input)