Bug 74226 - emacs should default to utf-8 encoding for utf-8 locales
Summary: emacs should default to utf-8 encoding for utf-8 locales
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: emacs
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jens Petersen
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-18 08:57 UTC by Jens Petersen
Modified: 2015-01-08 00:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-10-09 04:16:35 UTC
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2002-09-18 08:57:17 UTC
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):
emacs-21.2-18

How Reproducible:
every time

Steps to Reproduce:
1. LANG=en_US.utf-8 emacs

Actual Results:
Default encoding of buffers and files is latin-1 (iso8859-1).

Expected Results:
Default encoding should be utf-8, following the locale.

Additional Information:
(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.

Comment 1 Jens Petersen 2002-10-30 23:23:03 UTC
teg already fixed this. :-)



Note You need to log in before you can comment on or make changes to this bug.