mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Fix mojibake in visiting LaTeX files
* lisp/international/latexenc.el (latexenc-find-file-coding-system): Decode the main file's name, since at this point the buffer is still unibyte and undecoded. (Bug#81606)
This commit is contained in:
parent
cd6bbb7ac2
commit
62c9725bae
|
|
@ -160,6 +160,8 @@ coding system names is determined from `latex-inputenc-coding-alist'."
|
|||
(stringp TeX-master)
|
||||
TeX-master)
|
||||
(bound-and-true-p tex-main-file)))))
|
||||
;; Decode the main file name, assuming it's in UTF-8.
|
||||
(setq file (decode-coding-string file 'utf-8))
|
||||
(dolist (ext `("" ,(if (boundp 'TeX-default-extension)
|
||||
(concat "." TeX-default-extension)
|
||||
"")
|
||||
|
|
|
|||
Loading…
Reference in a new issue