gnome-language-selector crashed with dbus.exceptions.DBusException in call_blocking(): org.freedesktop.Accounts.Error.Failed: 'C.UTF-8' is not a valid locale name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
accountsservice (Ubuntu) |
Fix Released
|
Medium
|
Gunnar Hjalmarsson | ||
Focal |
Fix Released
|
Medium
|
Gunnar Hjalmarsson |
Bug Description
[Impact]
accountsservice includes a function for checking the validity of locales, and it incorrectly considers "C.UTF-8" to be invalid. It leads to incorrect behavior under certain conditions and also a crash if the function was triggered from language-
Even if this only makes a difference in special corner cases, it happens often enough to justify this SRU:
https:/
(It's the top ranked crash type in the list.)
The version in focal-proposed fixes the issue.
[Test case]
Make a fresh install of Ubuntu 20.04 (a VM works fine)
Once logged in:
* Install accountsservice, gir1.2-
libaccountsse
* Open /etc/default/locale for editing, replace its contents with
the single line:
LANG=C.UTF-8
and reboot.
Open Language Support and change language (drag any language above
the "English" item)
Open ~/.pam_environment and find that e.g. LANG is now the locale representing the language you selected, while e.g. LC_TIME is set to "C.UTF-8".
[Regression risk]
This is a oneliner which white list "C.UTF-8" as a valid locale name. I can't think of a case where this would cause unexpected behavior.
[Original description]
USB live disk (20.04 beta)
ProblemType: Crash
DistroRelease: Ubuntu 20.04
Package: language-
ProcVersionSign
Uname: Linux 5.4.0-21-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu22
Architecture: amd64
CasperVersion: 1.442
CurrentDesktop: MATE
Date: Sun Apr 19 17:07:26 2020
ExecutablePath: /usr/bin/
InterpreterPath: /usr/bin/python3.8
LiveMediaBuild: Ubuntu-MATE 20.04 LTS "Focal Fossa" - Beta amd64 (20200402)
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu1
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: language-selector
Title: gnome-language-
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
tags: | removed: need-duplicate-check |
Changed in language-selector (Ubuntu): | |
importance: | Undecided → Medium |
description: | updated |
Changed in accountsservice (Ubuntu Focal): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
importance: | Undecided → Medium |
status: | New → In Progress |
Thanks for your report!
I could reproduce the problem and have uploaded a fix.