Dead keys break in Emacs with locale set by gnome-language-selector/GDM
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
emacs23 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: language-selector
Dead keys in Emacs stop working after running gnome-language-
The reason for this is expalined here:
1. Run language selector, select locale (Norwegian in my case, probably applies to many others as well)
2. Language selector writes the value 'Langauge=
3. Log out
4. Log in
5. GDM reads ~/.dmrc, sets the value for locale in GDM_LANG variable, and subsequently LANG gets set to the value of GDM_LANG (/etc/gdm/Xsession) for the login session.
However, Emacs seems to have problems interpreting 'LANG=nb_NO.utf8'. When explicitly setting LANG to 'nb_NO.UTF-8' (notice the difference in specifying the encoding), then dead keys start working properly in Emacs.
This was not a problem in earlier versions of Ubuntu (<= Karmic).
I don't know if 'utf8' is a valid encoding specification for the locale variables, but it looks like 'UTF-8' works better, at least for Emacs. Also, the value specified in /etc/default/locale uses the proper "upper-
If 'LANG=nb_NO.utf8' is indeed a valid way of specifying locale, then the bug is in Emacs. If not, this bug applies to gnome-language-
No matter where the bug is, the locale set by gnome-language-
Ubuntu 10.04 x86 installed from RC, fully up to date.
emacs 23.1+1-4ubuntu7
gnome-language-
gdm 2.30.0-0ubuntu5
If emacs cannot handle .utf8 locales, it's a bug in emacs. The new standard is to use .utf8 instead of .UTF-8. Emacs should be migrated to use the new standard. This change has occured in the langpack-locales package, which includes the locale data from upstream glibc.