forked from mirrors/org-mode
ox: Fix coding system error
* lisp/ox.el (org-export--generate-copy-script): Clone `buffer-file-coding-system' when creating a buffer copy. This patches makes sure the output will share the same encoding as the original buffer.
This commit is contained in:
parent
570e0f93dc
commit
65bacaac73
11
lisp/ox.el
11
lisp/ox.el
|
@ -2729,10 +2729,13 @@ another buffer, effectively cloning the original buffer there."
|
|||
(val (cdr entry)))
|
||||
(and (not (eq var 'org-font-lock-keywords))
|
||||
(or (memq var
|
||||
'(major-mode default-directory
|
||||
buffer-file-name outline-level
|
||||
outline-regexp
|
||||
buffer-invisibility-spec))
|
||||
'(major-mode
|
||||
default-directory
|
||||
buffer-file-name
|
||||
buffer-file-coding-system
|
||||
outline-level
|
||||
outline-regexp
|
||||
buffer-invisibility-spec))
|
||||
(string-match "^\\(org-\\|orgtbl-\\)"
|
||||
(symbol-name var)))
|
||||
;; Skip unreadable values, as they cannot be
|
||||
|
|
Loading…
Reference in New Issue