cloud-images don't accept LANG settings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Won't Fix
|
Critical
|
Unassigned |
Bug Description
The cloud images currently only support "en_US.UTF-8" locales in Oneiric and Precise by default unless a user sets the locale via cloud-config in cloud-init. Users who SSH into a cloud-image with LANG="<SOMETHING ELSE>" will have the LANG setting ignored. On Precise if the LANG is invalid, then the environment will reflect the invalid language; if the LANG is valid, then it will be ignored.
IMHO, this is a poor user experience for international users. We either need to turn off "Accept LC_*" in /etc/sshd/config, install (and thus bloat the images) all the language packs or come up with a way to dynamically install the the languages.
Example:
LANG="en_GB.UTF-8" ssh ec2-23-
Warning: Permanently added 'ec2-23-
Welcome to Ubuntu precise (development branch) (GNU/Linux 3.2.0-10-virtual i686)
ubuntu@
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
ubuntu@
C
C.UTF-8
en_US.utf8
POSIX
----
Invalid LANG setting -- the following example is SSH'ing with an invalid LANG="?". Notice that the LANG is reflected in the environment. In this case /etc/default/locale has 'LANG="
ben@padfoot:
Welcome to Ubuntu precise (development branch) (GNU/Linux 3.2.0-10-virtual i686)
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.UTF-8
...
ubuntu@
Generating locales...
en_GB.UTF-8... done
Generation complete.
ubuntu@
ben@padfoot:
Welcome to Ubuntu precise (development branch) (GNU/Linux 3.2.0-10-virtual i686)
ubuntu@
LANG=en_US.UTF-8
..
Related Bugs:
* bug 859814: Locale issues with beta-1/2 cloud-images
Changed in ubuntu: | |
assignee: | nobody → Ben Howard (utlemming) |
importance: | Undecided → High |
summary: |
- cloud-images don't understand other locales in precise + cloud-images don't accept LANG settings |
description: | updated |
Changed in ubuntu: | |
importance: | Low → Critical |
status: | New → Confirmed |
description: | updated |
Changed in ubuntu: | |
status: | Confirmed → Won't Fix |
After talking with smoser, this is getting tabled pending a discussion with Foundations.