bug#81606: Mojibake with UTF-8 file names
Werner LEMBERG <[email protected]>
| Newsgroups | gmane.emacs.bugs |
|---|---|
| Message-ID | <[email protected]> |
> Here's the patch I can suggest:
>
> diff --git a/lisp/international/latexenc.el b/lisp/international/latexenc.el
> index 6e0cde6..1e0f8e7 100644
> --- a/lisp/international/latexenc.el
> +++ b/lisp/international/latexenc.el
> @@ -160,6 +160,8 @@ latexenc-find-file-coding-system
> (stringp TeX-master)
> TeX-master)
> (bound-and-true-p tex-main-file)))))
> + ;; Decode the main file name as best as we can...
> + (setq file (decode-coding-string file 'undecided))
> (dolist (ext `("" ,(if (boundp 'TeX-default-extension)
> (concat "." TeX-default-extension)
> "")
Thanks. I also suggest that the AUCTeX documentation mentions the
importance of the 'coding:' cookie for master file names with
non-ASCII characters.
Werner