Red Hat Bugzilla – Bug 74226
emacs should default to utf-8 encoding for utf-8 locales
Last modified: 2015-01-07 19:00:31 EST
Description of Problem:
When Emacs is started in a locale that uses utf-8 encoding, it should
default to default to using utf-8 encoding for its buffers.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. LANG=en_US.utf-8 emacs
Default encoding of buffers and files is latin-1 (iso8859-1).
Default encoding should be utf-8, following the locale.
(prefer-coding-system 'utf-8) can be used to make utf-8 the default
buffer/file encoding. Of course this needs to be conditionalized on
a test that the locale is using a utf-8 encoding, particularly since
Emacs can currently handle CJK utf-8 afaik.
teg already fixed this. :-)