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:

> I would be more strict.  What about the following.
>
>   Non-ASCII characters in the name of of the master file must use the
>   same encoding as the current input file itself.  To make this
>   actually work, set the @code{coding} local variable accordingly; in
>   most cases, you want to use UTF-8 encoding.  Example:

Thanks Werner, I like you suggestion:

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

+Non-@acronym{ASCII} characters in the name of the master file must use the
+same encoding as the current input file itself.  To make this actually
+work, set the @code{coding} local variable accordingly; in most cases, you
+want to use @acronym{UTF}-8 encoding.  Example:
+
+@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.