bug#81606: Mojibake with UTF-8 file names

Arash Esbati <[email protected]>
Newsgroups gmane.emacs.bugs
Message-ID <[email protected]>
Werner LEMBERG <[email protected]> writes:

> Thanks.  I also suggest that the AUCTeX documentation mentions the
> importance of the 'coding:' cookie for master file names with
> non-ASCII characters.

I plan to install something like this.  Does it make sense to you?

--8<---------------cut here---------------start------------->8---
diff --git a/doc/auctex.texi b/doc/auctex.texi
index 07ad346c..16e6e228 100644
--- a/doc/auctex.texi
+++ b/doc/auctex.texi
@@ -4717,6 +4717,17 @@ your files.
 %%% End:
 @end example

+If you're using non-ASCII characters in the name of the master file and
+Emacs doesn't detect the master file correctly, you should give Emacs a
+hint about the correct coding of the current file like this:
+
+@example
+%%% Local Variables:
+%%% coding: utf-8
+%%% TeX-master: "ä-master"
+%%% End:
+@end example
+
 You should always set this variable to the name of the top level document.  If
 you always use the same name for your top level documents, you can set
 @code{TeX-master} in your init file such as @file{init.el} or @file{.emacs}.
--8<---------------cut here---------------end--------------->8---

Best, Arash
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.