← Back to team overview

ubuntu-phone team mailing list archive

Re: Default Locale for images

 

On 29 March 2014 01:59, Sergio Schvezov <sergio.schvezov@xxxxxxxxxxxxx> wrote:
> On Fri, Mar 28, 2014 at 7:49 PM, Steve Langasek
> <steve.langasek@xxxxxxxxxx> wrote:
>> On Fri, Mar 28, 2014 at 06:37:09PM -0400, Nicholas Skaggs wrote:
>>> 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).
>>
>> I think this ought to be fixed up in ubuntu-touch-session, which already
>> does a lot of environment handling for adb via /etc/profile.d.
>
> We sort of discussed this with Dimitri a while back; the idea was to
> use su for everything as what you'd give us a proper session.
>
> In summary were going to add a --user switch to the shell command to
> su in or execute the target command. Ideally we'd default to a user
> (i.e. but not necessarily phablet) but that would break too many tools
> we don't know about.
>
> The task just fell under the cracks, but it should solve most issues people see.
>

True. The first step to fully resolve this is simple:
# echo exec su - -c adbd > /etc/init/android-tools-adbd.override

Which was proposed back in january in
https://bugs.launchpad.net/ubuntu/+source/android-tools/+bug/1267117
I have now uploaded this into unapproved queue.
This will result in: $ adb shell, to have a more full environment,
including correct default locale.

It's a first step towards implementing the full "--user" switch support.

-- 
Regards,

Dimitri.


References