瀏覽代碼

LaTeX export: Make inputenc coding system default to utf8

Carsten Dominik 15 年之前
父節點
當前提交
d7c63f6760
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-latex.el

+ 5 - 0
lisp/ChangeLog

@@ -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>
 2010-02-01  Carsten Dominik  <carsten.dominik@gmail.com>
 
 
 	* org.el (org-block-todo-from-children-or-siblings-or-parent)
 	* org.el (org-block-todo-from-children-or-siblings-or-parent)

+ 1 - 1
lisp/org-latex.el

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