ox-odt: Fix exporting from buffers with non-standard encoding
* lisp/ox-odt.el (org-odt--export-wrap): Enforce 'utf-8 coding system when writing to odt file, as declared in the template. Reported-by: Amy Grinn <grinn.amy@gmail.com> Link: https://orgmode.org/list/87ed3fvu7p.fsf@pop-os.mail-host-address-is-not-set
This commit is contained in:
parent
984c0c58bb
commit
34a354f0fd
|
@ -4032,7 +4032,11 @@ contextual information."
|
|||
(kill-buffer buf)))))
|
||||
;; Delete temporary directory and also other embedded
|
||||
;; files that get copied there.
|
||||
(delete-directory org-odt-zip-dir t))))
|
||||
(delete-directory org-odt-zip-dir t)))
|
||||
;; We specify UTF-8 in `org-odt-template'. Enforce it even
|
||||
;; when the buffer text has different encoding.
|
||||
(coding-system-for-write 'utf-8)
|
||||
(save-buffer-coding-system 'utf-8))
|
||||
(condition-case-unless-debug err
|
||||
(progn
|
||||
(unless (executable-find "zip")
|
||||
|
|
Loading…
Reference in New Issue