Localization doesn't work

Bug #1912967 reported by Paride Legovini
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Released
High
Unassigned

Bug Description

This is a regression in version 21.01.1.

Selecting a language (e.g French) from subiquity's language selection screen doesn't actually change the installer language. This did work fine in 20.09.1.

(The language setting also has no effect on the installed system locale settings or generated locales, but this was already the case with older subiquity versions.)

tags: added: fr-1080
Changed in subiquity:
importance: Undecided → High
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

oops https://github.com/CanonicalLtd/subiquity/pull/881

Also, it should affect the installed system -- the setting should be written to the cloud-init data for the new system under the locale: key. Does that not DTRT?

Revision history for this message
Paride Legovini (paride) wrote :

Subiquity 21.01.2 now switches its language according to the one selected in the language selection screen, however the installed system is still not localized. I tracked the problem down to the generated cloud-init user-data, which has (in the case of French):

  locale: fr.UTF-8

while it should be:

  locale: fr_FR.UTF-8

This trips the cloud-init call to locale-gen, as can be tested manually by running:

  locale-gen fr.UTF-8 # fails
  locale-gen fr_FR.UTF-8 # succeeds

This causes a traceback in cloud-init which also prevents the correct LANG variable from being set. This is not a regression, the bug was already present in earlier versions of subiquity.

Dan Bungert (dbungert)
Changed in subiquity:
assignee: nobody → Dan Bungert (dbungert)
status: New → In Progress
Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1912967

tags: added: iso-testing
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Let's get this fixed as soon as possible, but I think this is something that can land post 20.04.2. Subiquity gives the option to snap refresh on start so even users of 20.04.2 can also get it easily once we have it in stable.

Revision history for this message
Dan Bungert (dbungert) wrote :

The core part of this bug has been released.
I've split off the part about setting the language on the target system to https://bugs.launchpad.net/subiquity/+bug/1913624

Changed in subiquity:
assignee: Dan Bungert (dbungert) → nobody
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.