Comment 3 for bug 920601

Revision history for this message
Ben Howard (darkmuggle-deactivatedaccount) wrote : Re: cloud-images don't understand other locales in precise

Attempting to change the bug description, but launchpad seems to be erroring out. Here is what I want the description to be:
----

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 an invalid LANG seting.

IMHO, this is a poor user experience for international users. We either need to turn off "Accept LC_*" in /etc/sshd/config, installed (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-20-37-252.compute-1.amazonaws.com
Warning: Permanently added 'ec2-23-20-37-252.compute-1.amazonaws.com' (ECDSA) to the list of known hosts.
Welcome to Ubuntu precise (development branch) (GNU/Linux 3.2.0-10-virtual i686)

ubuntu@domU-12-31-39-16-C8-46:~$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.UTF-8
LANGUAGE=
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE=en_US.UTF-8
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=

ubuntu@domU-12-31-39-16-C8-46:/home/ubuntu$ locale -a
C
C.UTF-8
en_US.utf8
POSIX