bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13936: Default to UTF-8 for most Emacs source files


From: Paul Eggert
Subject: bug#13936: Default to UTF-8 for most Emacs source files
Date: Mon, 18 Mar 2013 13:40:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

Another thought is to add support for a local variable 'lang'
to specify the language, HTML-style, e.g.:

;; Local Variables:
;; coding: utf-8
;; lang: ja
;; End:

where the "ja" comes from the usual standard list (see Internet BCP 47
and <http://www.iana.org/assignments/language-subtag-registry>).
Emacs could use the language to set charset-priority on a per-file basis.
This would be friendlier to users than the
"eval: (set-charset-priority 'japanese-jisx0208)" approach
that I mentioned earlier.  But it'd be more implementation work.

In the meantime I will propose a stripped-down patch that does not
alter TUTORIAL.ja and the other CJK files; this should avoid the
charset problems that Mr. Handa mentioned.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]