← Back to team overview

ubuntu-phone team mailing list archive

Re: Default Locale for images

 

On 03/28/2014 03:37 PM, Stéphane Graber wrote:
On Fri, Mar 28, 2014 at 03:30:19PM -0400, Nicholas Skaggs wrote:
Well investigating an issue that popped up running some autopilot
tests (thanks popey), I discovered with Barry that the locale for
the default images is posix, at least for the root account. The
phablet user seems to be set properly as utf-8.

root@ubuntu-phablet:/# locale
LANG=
LANGUAGE=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
root@ubuntu-phablet:/# su phablet
phablet@ubuntu-phablet:/$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
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=

Is there a reason for this?
I doubt it's intentional, instead my guess would be that adb which you
appear to be using above simply doesn't bother setting those environment
variables (which makes sense considering Android doesn't have anything
like /etc/default/locale).

Nicholas

--
Mailing list: https://launchpad.net/~ubuntu-phone
Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ubuntu-phone
More help   : https://help.launchpad.net/ListHelp
Popey noted that doing "sudo -u phablet -i" to gain phablet user after shelling gets me a posix locale, while doing an "su phablet" as I did nets me utf-8. More adb shell weirdness I guess.

Regardless, I think we want utf-8 across the board, and since we use adb with test running, this might cause us issues (indeed it appears to be an issue now for some).

Nicholas


Follow ups

References