mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-25 07:27:57 +00:00
ob-dot: Fix error with utf-8 encoded dot files
* lisp/ob-dot.el (org-babel-execute:dot): Add utf-8 support. When trying to render a dot file with utf-8 encoded characters, Org Babel complains about the encodings. This patch makes utf-8 dot files work. TINYCHANGE
This commit is contained in:
parent
e22d32b023
commit
0d0cd9694f
@ -69,6 +69,8 @@ This function is called by `org-babel-execute-src-block'."
|
||||
(cmdline (or (cdr (assq :cmdline params))
|
||||
(format "-T%s" (file-name-extension out-file))))
|
||||
(cmd (or (cdr (assq :cmd params)) "dot"))
|
||||
(coding-system-for-read 'utf-8) ;use utf-8 with sub-processes
|
||||
(coding-system-for-write 'utf-8)
|
||||
(in-file (org-babel-temp-file "dot-")))
|
||||
(with-temp-file in-file
|
||||
(insert (org-babel-expand-body:dot body params)))
|
||||
|
Loading…
Reference in New Issue
Block a user