LaTeX export: Make inputenc coding system default to utf8

This commit is contained in:
Carsten Dominik 2010-02-02 06:31:21 +01:00
parent 16f73aff96
commit d7c63f6760
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-02-02 Carsten Dominik <carsten.dominik@gmail.com>
* org-latex.el (org-export-latex-fix-inputenc): Never leave the
AUTO as a coding system, instead default to utf8.
2010-02-01 Carsten Dominik <carsten.dominik@gmail.com>
* org.el (org-block-todo-from-children-or-siblings-or-parent)

View File

@ -2045,7 +2045,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
(defun org-export-latex-fix-inputenc ()
"Set the codingsystem in inputenc to what the buffer is."
(let* ((cs buffer-file-coding-system)
(opt (latexenc-coding-system-to-inputenc cs)))
(opt (or (latexenc-coding-system-to-inputenc cs) "utf8")))
(when opt
;; Translate if that is requested
(setq opt (or (cdr (assoc opt org-export-latex-inputenc-alist)) opt))