Language support quits immediately after starting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-selector (Ubuntu) |
Fix Released
|
Medium
|
Gunnar Hjalmarsson | ||
Bionic |
Fix Released
|
Medium
|
Gunnar Hjalmarsson |
Bug Description
[Impact]
When Ubuntu is installed with a locale name which Python does not understand, e.g. en_IL, Language Support crashes when you try to launch it. This is really a bug which should be fixed in the installer (bug #1646260). Awaiting the installer fix, this proposed upload prevents that Language Support crashes.
[Test Case]
1. Make sure that no ~/.xinputrc file is present.
2. Start Language Support from terminal using this command:
LANG=en_IL gnome-language-
-> Find that you have reproduced the crash.
3. Install language-
bionic-proposed and repeat step 2.
-> Language Support starts without crashing.
[Regression Potential]
None.
[Original description]
When I click on Language Support from the applications menu, it starts, shows a progress bar, and then immediately quits.
I do not see the crash report window open (Apport), but something seems to crash. Here is what is appended to the syslog when the phenomenon happens:
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
May 20 12:20:28 alex-laptop gnome-language-
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: language-
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.9-0ubuntu7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun May 20 12:15:21 2018
InstallationDate: Installed on 2018-05-19 (0 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_IL
SHELL=/bin/bash
SourcePackage: language-selector
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in language-selector (Ubuntu): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
status: | Triaged → Fix Committed |
Changed in language-selector (Ubuntu Bionic): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
status: | Triaged → In Progress |
After some research, it seems like a Python bug. I can reproduce the same problem by running the python3 interpreter:
Python 3.6.5 (default, Apr 1 2018, 05:46:30) setlocale( locale. LC_CTYPE, 'en_IL') getlocale( locale. LC_CTYPE) python3. 6/locale. py", line 581, in getlocale localename( localename) python3. 6/locale. py", line 490, in _parse_localename
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.
'en_IL'
>>> mylocale = locale.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return _parse_
File "/usr/lib/
raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: en_IL
>>>