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)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Jun 2024 12:50:38 +0000 (15:50 +0300)
* lisp/epg.el (epg--start): Don't encode command-line arguments for
gpg2 program in raw-text.

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)