From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Sigmund Tzeng <sig.tzeng@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: utf-8 support for ob-dot.el [9.1.14 (9.1.14-1-g4931fc-elpa @ c:/Users/sig/emacs261/.emacs.d/elpa/org-9.1.14/)]
Date: Thu, 27 Sep 2018 16:58:46 +0200 [thread overview]
Message-ID: <87d0szhtqx.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAJyw0fRct+ivO8V_WKMTk0BRArN30gFUtiPnnWp0Rf5DeoFx3A@mail.gmail.com> (Sigmund Tzeng's message of "Sat, 22 Sep 2018 14:10:02 +0800")
Hello,
Sigmund Tzeng <sig.tzeng@gmail.com> writes:
> When trying to render a dot file with utf-8 encoded characters,
> org babel complained about the encodings. I cross checked ob-go.el at
> line 107-108 and made an identical patch to make utf-8 dot files work:
>
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> diff --git "a/elpa\\org-9.1.14\\ob-dot.el"
> "b/\\emacs261\\share\\emacs\\26.1\\lisp\\org\\ob-dot.el"
> index 0fe50d4..31e0a4f 100644
> --- "a/elpa\\org-9.1.14\\ob-dot.el"
> +++ "b/\\emacs261\\share\\emacs\\26.1\\lisp\\org\\ob-dot.el"
> @@ -69,8 +69,6 @@ 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 subprocesses
> - (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)))
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I'm a bit surprised Emacs doesn't do the right thing here.
Anyway, could you provide a commit message and use "git format-patch"
command. Also, could you add TINYCHANGE cookie if you haven't signed FSF
papers yet.
Thank you.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2018-09-27 14:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-22 6:10 Bug: utf-8 support for ob-dot.el [9.1.14 (9.1.14-1-g4931fc-elpa @ c:/Users/sig/emacs261/.emacs.d/elpa/org-9.1.14/)] Sigmund Tzeng
2018-09-27 14:58 ` Nicolas Goaziou [this message]
2018-09-29 2:28 ` Sigmund Tzeng
2018-09-29 6:50 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d0szhtqx.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=sig.tzeng@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.