editor/format: remove utf-8 conversion on Windows #914
This commit is contained in:
parent
0733a6dfac
commit
0c743afcfd
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue