24.04 install with a British timezone location sets en_US.UTF-8 locale

Bug #2043609 reported by Phil Wyett
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-desktop-provision
New
Unknown

Bug Description

24.04 install (UK keyboard) is showing United States in 'Your Account' section of control center when keyboard is UK.

See screenshot.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-control-center 1:45.0-1ubuntu3
ProcVersionSignature: Ubuntu 6.5.0-9.9-generic 6.5.3
Uname: Linux 6.5.0-9-generic x86_64
ApportVersion: 2.27.0-0ubuntu6
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Wed Nov 15 18:17:48 2023
InstallationDate: Installed on 2023-11-15 (0 days ago)
InstallationMedia: Ubuntu 24.04 "Noble Numbat" - Daily amd64 (20231115.1)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: gnome-control-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Phil Wyett (kathenas) wrote :
Revision history for this message
Phil Wyett (kathenas) wrote :

Shows as United States in 'Language Support'.

See screenshot.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks for your report.

The "Language for menus and windows" setting shows which locale is used to determine the display language. That's unrelated to the keyboard layout for typing. You find the activated keyboard layouts in Settings -> Keyboard.

Closing.

Changed in gnome-control-center (Ubuntu):
status: New → Invalid
Revision history for this message
Phil Wyett (kathenas) wrote :

Thanks I will report differently. An English->English UK install should be setting UK language and numerical etc. not United States.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Well, that's a different issue. ;)

Which time zone location did you select during the install?

Changed in gnome-control-center (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

And another question, btw: Did you use the new flutter based installer or the "legacy" Ubiquity one?

Revision history for this message
Phil Wyett (kathenas) wrote :

Time zones would be London.

I used the first working AMD64 daily live ISO of yesterday 20231115.1 that I assume defaults to the new flutter based GUI installer.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I could reproduce it.

The old installer makes use of the time zone location to "guess" the desired locale, but that is apparently not the case with the flutter based installer (at least not for the English variants).

There is a similar issue reported at GitHub: https://github.com/canonical/ubuntu-desktop-installer/issues/2386

summary: - 24.04 install (UK keyboard) is showing United States in 'Your Account'
- section of control center when keyboard is UK.
+ 24.04 install with a British timezone location sets en_US.UTF-8 locale
affects: gnome-control-center (Ubuntu) → ubuntu-desktop-installer
Changed in ubuntu-desktop-installer:
importance: Undecided → High
status: Incomplete → Confirmed
Changed in ubuntu-desktop-installer:
importance: High → Unknown
status: Confirmed → Unknown
Changed in ubuntu-desktop-installer:
status: Unknown → New
affects: ubuntu-desktop-installer → ubuntu-desktop-provision
Changed in ubuntu-desktop-provision:
importance: Unknown → Undecided
Changed in ubuntu-desktop-provision:
importance: Undecided → Unknown
Revision history for this message
Robin (robingape) wrote :

Confirmed with bare metal install of Ubuntu 24.04.1. The locale set is LANG=en_US.UTF-8. It should be LANG=en_GB.UTF-8. On a 22.04 install, the local file at /etc/default/locale is indicated as having been generated with update-locale. The corresponding file for a 24.04.1 install had no such indication.

Revision history for this message
Robin (robingape) wrote :

Presumably the installer should set the locale in two places:
a) via update-locale in /etc/default/locale
b) wherever Settings→System→Language and Region stores its settings, such that Language is set to English (United Kingdom) and Formats is set to United Kingdom

This would seem to be an installer omission as far as the UK is concerned.

The auto assignment to auto-github-canonical-ubuntu-desktop-installer #2324takes one to an /archived/ repo. The current assignment is incorrect.

This is a live bug and should be fixed.

Revision history for this message
Robin (robingape) wrote :

The bug first became manifest to this author when Thunderbird (Snap installed) showed dates incorrectly on first configuration. After correcting the locales as noted below, then the correct localisation could be made, and dates displayed correctly for the UK.

Suggested fix:

    • To correct this for the system:
sudo update-locale LANG=en_GB.UTF-8 LANGUAGE=en_GB:en

    • For the principal user, using the GUI at Settings→System→Language and Region, set Language to English (United Kingdom), and Formats to United Kingdom. This change will trigger a logout from the current desktop session. On re-login, the language and formats should be set to United Kingdom.

Revision history for this message
Robin (robingape) wrote :

Problem persists with 24.04.2 installer.

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.