branch: externals/auctex
commit 96ba11321ce7a829d1772e6d31b94a075fb93ce1
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Support UTF-8 with BOM in Japanese TeX documents
* tex-jp.el (japanese-TeX-coding-ejsu): Consider the case the document
is encoded in UTF-8 with BOM, which begins to be supported in TeXLive
2018.
---
tex-jp.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tex-jp.el b/tex-jp.el
index 017144f..c20e62d 100644
--- a/tex-jp.el
+++ b/tex-jp.el
@@ -380,6 +380,8 @@ Return nil otherwise."
(iso-2022-jp . "jis")
(japanese-shift-jis . "sjis")
(utf-8 . "utf8")
+ ;; TeXLive 2018 $B$+$i(B BOM $B$D$-(B UTF-8
$B$b%5%]!<%H$5$l$?!#(B
+ (utf-8-with-signature . "utf8")
(euc-jis-2004 . "euc")
(iso-2022-jp-2004 . "jis")