Bug#746415: Changing LANG is not a solution

2021-07-08 Thread Vincent Lefevre
On 2020-06-06 13:49:31 +0100, graeme vetterlein wrote:
> Is this defect being addressed, It seems to have been important for 6 years?

I cannot reproduce this bug, even after setting LC_ALL=C in
/etc/default/locale. And it is tagged fixed-upstream.

So, what's the status of this bug?

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#746415: Changing LANG is not a solution

2020-06-06 Thread graeme vetterlein

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= 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@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@real:~# cat /home/guest/set-C-locale
update-locale  LANG=C LANGUAGE

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

root@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