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:
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.
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.