Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

/etc/default/locale is always set to en_US.UTF-8 #751

Closed
advocatux opened this issue Jul 7, 2018 · 5 comments
Closed

/etc/default/locale is always set to en_US.UTF-8 #751

advocatux opened this issue Jul 7, 2018 · 5 comments
Labels

Comments

@advocatux
Copy link

  • Device: tested on krillin and hammerhead
  • Channel: both vivid and xenial
  • Build: all

Steps to reproduce

See the content of /etc/default/locale

Expected behavior

That content should match the real locale you have set on your device

Actual behavior

The content of that file is not the real locale on your device but it's always en_US.UTF-8

Logfiles and additional information

Connect your device with adb and using adb shell consult locale.
You'll get the wrong info when your device is set to any other language that is not "American English".

@dobey
Copy link
Member

dobey commented Jul 7, 2018

This is a problem not with the contents of /etc/default/locale as changing the locale setting does not alter this file (and I'm not sure this file is even in writable space on UT). Rather, the issue here is that adb shell does not give a login shell, and so your configured environment is not fully used. If you connect instead via ssh or phablet-shell (which does ssh over adb), then the locale is as expected.

@advocatux
Copy link
Author

@dobey yes, that's right, adb shell doesn't look to /home/phablet/.pam_environment but to /etc/default/locale and that's is always set to en_US.UTF-8, and as you said, it's a non-writable file.

If I'm understanding correctly the issue, it doesn't have an easy solution because the user should be able to select the system locale by default during the UT installation process, not just for the user space, and every image update have to honor that selection.

Anyway, I just wanted to document this because it's an issue for non-American-English users.

@Flohack74
Copy link
Member

Well @advocatux ADB is not meant to be a normal access method for the phone, not even in Android. Its a debug bridge, so limitations occur. Thats why phablet-shell exists ;) and yet better, we should promote more ssh access, as this will also work via WiFi then.

@advocatux
Copy link
Author

Yeah @Flohack74 you're right, and I agree with you. ADB is for debugging and for normal access ssh is better. I just wanted to point out this (very minor) locale issue.

If you want to close this issue, that's also fine with me :)

@Flohack74
Copy link
Member

Yes for the moment I close this as wontfix :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants