From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [Bug] Export Coding System Date: Sat, 23 Feb 2013 11:31:19 +0100 Message-ID: <87bobbiao8.fsf@gmail.com> References: <87zjywjxjp.fsf@gmail.com> <87ppzsjp0t.fsf@gmail.com> <87ehg8nika.fsf@Rainer.invalid> <874nh4j91d.fsf@gmail.com> <871uc7xtri.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9CV4-0002xJ-Bz for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:38:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U9CV1-0006h6-Q8 for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:38:38 -0500 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:47877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U9CV1-0006gq-Ju for emacs-orgmode@gnu.org; Sat, 23 Feb 2013 05:38:35 -0500 Received: by mail-we0-f173.google.com with SMTP id r5so1185918wey.32 for ; Sat, 23 Feb 2013 02:38:34 -0800 (PST) In-Reply-To: <871uc7xtri.fsf@Rainer.invalid> (Achim Gratz's message of "Sat, 23 Feb 2013 10:29:53 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Achim Gratz Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Achim Gratz writes: > It doesn't fix the problem when I want to export the file in > a different encoding (for instance by customizing Org Export Latex > Coding System), that would require a second step of re-setting the > buffer-file-coding-system before using it to determine what to write > into the inputenc option. Would the following patch work? Regards, -- Nicolas Goaziou --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ox-latex-Set-inputenc-option-according-to-org-export.patch >From 2f2591719cc41e7312401ce7368b4bbbdde2c8ad Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 23 Feb 2013 11:29:45 +0100 Subject: [PATCH] ox-latex: Set inputenc option according to `org-export-coding-system' * lisp/ox-latex.el (org-latex-guess-inputenc): Set inputenc option according to `org-export-coding-system'. --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index cbeaa4e..4047aa2 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -946,7 +946,7 @@ when specified inputenc option is \"AUTO\". Return the new header, as a string." (let* ((cs (or (ignore-errors (latexenc-coding-system-to-inputenc - buffer-file-coding-system)) + (or org-export-coding-system buffer-file-coding-system))) "utf8"))) (if (not cs) header ;; First translate if that is requested. -- 1.8.1.4 --=-=-=--