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
|
@ -2729,8 +2729,11 @@ another buffer, effectively cloning the original buffer there."
|
||||||
(val (cdr entry)))
|
(val (cdr entry)))
|
||||||
(and (not (eq var 'org-font-lock-keywords))
|
(and (not (eq var 'org-font-lock-keywords))
|
||||||
(or (memq var
|
(or (memq var
|
||||||
'(major-mode default-directory
|
'(major-mode
|
||||||
buffer-file-name outline-level
|
default-directory
|
||||||
|
buffer-file-name
|
||||||
|
buffer-file-coding-system
|
||||||
|
outline-level
|
||||||
outline-regexp
|
outline-regexp
|
||||||
buffer-invisibility-spec))
|
buffer-invisibility-spec))
|
||||||
(string-match "^\\(org-\\|orgtbl-\\)"
|
(string-match "^\\(org-\\|orgtbl-\\)"
|
||||||
|
|
Loading…
Reference in New Issue