Merge pull request #5 from akirak/coding-system

Set the process coding system based on buffer-file-coding-system
This commit is contained in:
Radon Rosborough 2019-08-15 08:23:47 -07:00 committed by GitHub
commit d441280235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,6 +289,9 @@ provided that its exit status is 0."
(process-exit-status proc)
stderr))))))
(set-process-sentinel (get-buffer-process stderr) #'ignore)
(set-process-coding-system apheleia--current-process
nil
(buffer-local-value 'buffer-file-coding-system stdin))
(when stdin
(process-send-string
apheleia--current-process