Incorrect locale if the host's locale is not present in the desktop next ISO
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Unity8 Desktop Preview in LXC | Status tracked in Development | |||||
Development |
Fix Committed
|
High
|
Marius Gripsgard | |||
unity8-lxc (Ubuntu) |
Fix Released
|
High
|
Marius Gripsgard |
Bug Description
If unity8-lxc-setup is run from a host with a locale that is not included in the desktop next iso (which has only got a few language packs installed), there are a few warnings shown during the setup:
http://
The issue is that the host's locale is not recognized and in the container it is then set as "POSIX" upon failure to recognize it. "POSIX" is an invalid locale name, which then prevents Mir from starting in the unity8 session.
The workaround for this after the setup is to generate the locale inside the container. In this particular case, it was the 'ca' locale:
root@unity8-lxc:~# locale-gen ca
Generating locales...
ca_AD.UTF-8... done
ca_ES.UTF-8... done
ca_ES.
ca_FR.UTF-8... done
ca_IT.UTF-8... done
Generation complete.
root@unity8-lxc:~# locale
LANG=ca_ES.UTF-8
LANGUAGE=ca_ES
LC_CTYPE=
LC_NUMERIC=
LC_TIME=ca_ES.UTF-8
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=ca_ES.UTF-8
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
Here's an explanation of why this might be happening: http://
Perhaps the best thing to do would be for unity8-lxc-setup to run locale-gen if it detects that the host locale is not recognized? Or to simply add a step to run locale-gen regardless, which might be much simpler and less error-prone.
Related branches
- Unity 8 Desktop Session: Pending requested
-
Diff: 22 lines (+11/-1)1 file modifiedbin/unity8-lxc-setup (+11/-1)
Changed in unity8-preview-lxc: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in unity8-lxc (Ubuntu): | |
importance: | Undecided → High |
Changed in unity8-preview-lxc: | |
milestone: | none → 1.0.4 |
status: | Confirmed → In Progress |
Changed in unity8-lxc (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in unity8-preview-lxc: | |
assignee: | nobody → Marius Gripsgard (mariogrip) |
Changed in unity8-lxc (Ubuntu): | |
assignee: | nobody → Marius Gripsgard (mariogrip) |
Status changed to 'Confirmed' because the bug affects multiple users.