editor/format: remove utf-8 conversion on Windows #914

This commit is contained in:
Henrik Lissner 2019-05-30 14:11:53 -04:00
parent 0733a6dfac
commit 0c743afcfd
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -145,8 +145,11 @@ See `+format/buffer' for the interactive version of this function, and
((eq output t) 'noop) ((eq output t) 'noop)
((let ((tmpfile (make-temp-file "doom-format")) ((let ((tmpfile (make-temp-file "doom-format"))
(patchbuf (get-buffer-create " *doom format patch*")) (patchbuf (get-buffer-create " *doom format patch*"))
(coding-system-for-read 'utf-8) (coding-system-for-read coding-system-for-read)
(coding-system-for-write 'utf-8)) (coding-system-for-write coding-system-for-write))
(unless IS-WINDOWS
(setq coding-system-for-read 'utf-8
coding-system-for-write 'utf-8))
(unwind-protect (unwind-protect
(progn (progn
(with-current-buffer patchbuf (with-current-buffer patchbuf