Browse Source

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'.
Nicolas Goaziou 12 years ago
parent
commit
57fb6ffa4d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ox-latex.el

+ 1 - 1
lisp/ox-latex.el

@@ -952,7 +952,7 @@ when specified inputenc option is \"AUTO\".
 Return the new header, as a string."
 Return the new header, as a string."
   (let* ((cs (or (ignore-errors
   (let* ((cs (or (ignore-errors
 		   (latexenc-coding-system-to-inputenc
 		   (latexenc-coding-system-to-inputenc
-		    buffer-file-coding-system))
+		    (or org-export-coding-system buffer-file-coding-system)))
 		 "utf8")))
 		 "utf8")))
     (if (not cs) header
     (if (not cs) header
       ;; First translate if that is requested.
       ;; First translate if that is requested.