** Description changed: 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-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_US.UTF-8 LANGUAGE= LC_CTYPE=en_US.UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE=en_US.UTF-8 LC_MONETARY="en_US.UTF-8" LC_MESSAGES=en_US.UTF-8 LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= ubuntu@domU-12-31-39-16-C8-46:/home/ubuntu$ locale -a 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="en_US.UTF-8"' set. ben@padfoot:~/Desktop$ LANG="en_GB.UTF-8" ssh ec2-23-20-37-252.compute-1.amazonaws.com 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@domU-12-31-39-16-C8-46:~$ sudo locale-gen en_GB.UTF-8 Generating locales... - en_GB.UTF-8... done + en_GB.UTF-8... done Generation complete. ubuntu@domU-12-31-39-16-C8-46:~$ exit ben@padfoot:~/Desktop$ LANG="en_GB.UTF-8" ssh ec2-23-20-37-252.compute-1.amazonaws.com Welcome to Ubuntu precise (development branch) (GNU/Linux 3.2.0-10-virtual i686) ubuntu@domU-12-31-39-16-C8-46:~$ locale LANG=en_US.UTF-8 .. + + + Related Bugs: + * bug 859814: Locale issues with beta-1/2 cloud-images
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/920601 Title: cloud-images don't accept LANG settings To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+bug/920601/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
