Bug#746415: Changing LANG is not a solution

graeme vetterlein graeme at vetterlein.com
Sat Jun 6 13:49:31 BST 2020


Is this defect being addressed, It seems to have been important for 6 years?

I am just hitting it in Debian buster (gdm3, gnome3) . I cannot set 
LANG=<something else> I must use LANG=C because it affects such things 
as sort order and only the C local has the semantic I need.

$ dpkg -l gnome-terminal
Desired=Unknown/Install/Remove/Purge/Hold
| 
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-===================================
ii  gnome-terminal 3.30.2-2     amd64        GNOME terminal emulator 
application

I actually hit a different (gnome-terminal) bug, but then hit this one 
while debugging that:


$ env | grep LANG
LANGUAGE=en_GB:en
GDM_LANG=en_GB.UTF-8
LANG=en_GB.UTF-8



guest at real:~$ gnome-terminal
# watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/settings-daemon/peripherals/mouse/" 
(establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, 
active: 0)
# watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" 
(establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
# watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/peripherals/mouse/" 
(establishing: 1)
# watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
# watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
# watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" 
(establishing: 1)
# watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
# watch_fast: "/org/gnome/terminal/legacy/" (establishing: 0, active: 0)
# unwatch_fast: "/org/gnome/terminal/legacy/" (active: 0, establishing: 1)
# watch_established: "/org/gnome/terminal/legacy/" (establishing: 0)


... then terminal starts

root at real:~# cat /home/guest/set-C-locale
update-locale  LANG=C LANGUAGE

root at real:~# . /home/guest/set-C-locale

root at real:~# cat /etc/default/locale
#  File generated by update-locale
LANG=C
#LANGUAGE=en_GB:en


....logoff , logon again (gdm3 + gnome3)

$ env | grep LANG
LANGUAGE=en_GB:en
GDM_LANG=C
LANG=C
$ gnome-terminal
# watch_fast: "/org/gnome/desktop/interface/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/settings-daemon/peripherals/mouse/" 
(establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/sound/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/privacy/" (establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/wm/preferences/" (establishing: 0, 
active: 0)
# watch_fast: "/org/gnome/settings-daemon/plugins/xsettings/" 
(establishing: 0, active: 0)
# watch_fast: "/org/gnome/desktop/a11y/" (establishing: 0, active: 0)
# watch_established: "/org/gnome/desktop/interface/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/peripherals/mouse/" 
(establishing: 1)
# watch_established: "/org/gnome/desktop/sound/" (establishing: 1)
# watch_established: "/org/gnome/desktop/privacy/" (establishing: 1)
# watch_established: "/org/gnome/desktop/wm/preferences/" (establishing: 1)
# watch_established: "/org/gnome/settings-daemon/plugins/xsettings/" 
(establishing: 1)
# watch_established: "/org/gnome/desktop/a11y/" (establishing: 1)
# Error constructing proxy for 
org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling 
StartServiceByName for org.gnome.Terminal: Timeout was reached
$

Setting LANG=C is required to work by various standards, many other 
programs in order to get valid support data require to be run in C locale.

In my case I need emacs to be running under C locale ... so I cannot set 
it later e.g. in .bashrc





-- 


Graeme



More information about the pkg-gnome-maintainers mailing list