Bug#290565: gdm: Wrong "languages normalization" in Xsession

Serge Matveev Serge Matveev <serge@matveev.spb.ru>, 290565@bugs.debian.org
Sat, 15 Jan 2005 01:05:09 +0300


Package: gdm
Version: 2.6.0.6-1
Severity: important


    gdm used wrong initialization of LANGUAGE variable. After this, there is
some strange bugs in debconf etc. See Bug#288852 (for wajig) for example.

    I mean this fragmen of /etc/X11/gdm/Xsession:

  if [ -n "$LANGUAGE" ]; then
    if [ "$LANGUAGE" != "$LANG" ]; then
      LANGUAGE="$LANG"
    fi
  else
    unset LANGUAGE
  fi

    In my installation of sarge, installer set LANGUAGE to "ru_RU:ru:en_GB:en", but in any X session I get LANGUAGE=ru_RU.KOI8-R. It's wrong - language must be ru or ru_RU.

    I think, gdm must not touch all these variables in debian. I think this comment (and following section) isn't for Debian 

# Normalize languages, some places/distros screw us up in /etc/profile, #
so in case the user did select a language

    After thise@ "normalization" we have problems :-((

-- System Information: Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-1-686
Locale: LANG=ru_RU.KOI8-R, LC_CTYPE=ru_RU.KOI8-R (charmap=KOI8-R)

Versions of packages gdm depends on: ii adduser 3.59 Add and remove users
and groups ii debconf 1.4.30.11 Debian configuration management sy ii dpkg
1.10.25 Package maintenance system for Deb ii gksu 1.2.2-1 graphical
frontend to su ii gnome-session 2.8.1-4 The GNOME 2 Session Manager ii
gnome-terminal [x-termin 2.8.2-1 The GNOME 2 terminal emulator appl ii
konsole [x-terminal-emul 4:3.3.1-3 KDE X terminal emulator ii libart-2.0-2
2.3.16-6 Library of functions for 2D graphi ii libatk1.0-0 1.8.0-4 The ATK
accessibility toolkit ii libattr1 2.4.16-1 Extended attribute shared
library ii libaudiofile0 0.2.6-5 Open-source version of SGI's audio ii
libbonobo2-0 2.8.0-4 Bonobo CORBA interfaces library ii libbonoboui2-0
2.8.0-2 The Bonobo UI library ii libbz2-1.0 1.0.2-1 A high-quality
block-sorting file ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii libcroco3 0.6.0-2 a generic Cascading Style Sheet (C ii libesd0 0.2.35-2
Enlightened Sound Daemon - Shared ii libgconf2-4 2.8.1-4 GNOME
configuration database syste ii libgcrypt11 1.2.0-4 LGPL Crypto library -
runtime libr ii libglade2-0 1:2.4.1-1 Library to load .glade files at ru ii
libglib2.0-0 2.4.8-1 The GLib library of C routines ii libgnome-keyring0
0.4.0-2 GNOME keyring services library ii libgnome2-0 2.8.0-6 The GNOME 2
library - runtime file ii libgnomecanvas2-0 2.8.0-1 A powerful
object-oriented display ii libgnomeui-0 2.8.0-3 The GNOME 2 libraries (User
Interf ii libgnomevfs2-0 2.8.3-7 The GNOME virtual file-system libr ii
libgnutls11 1.0.16-9 GNU TLS library - runtime library ii libgpg-error0
1.0-1 library for common error values an ii libgsf-1 1.11.1-1 Structured
File Library - runtime ii libgtk2.0-0 2.4.14-2 The GTK+ graphical user
interface ii libice6 4.3.0.dfsg.1-10 Inter-Client Exchange library ii
libjpeg62 6b-9 The Independent JPEG Group's JPEG ii liborbit2 1:2.10.2-1.1
libraries for ORBit2 - a CORBA ORB ii libpam-modules 0.76-22 Pluggable
Authentication Modules f ii libpam-runtime 0.76-22 Runtime support for the
PAM librar ii libpam0g 0.76-22 Pluggable Authentication Modules l ii
libpango1.0-0 1.6.0-3 Layout and rendering of internatio ii libpopt0 1.7-5
lib for parsing cmdline parameters ii librsvg2-2 2.8.1-2 SAX-based renderer
library for SVG ii libselinux1 1.18-3 SELinux shared libraries ii libsm6
4.3.0.dfsg.1-10 X Window System Session Management ii libtasn1-2 0.2.10-3
Manage ASN.1 structures (runtime) ii libwrap0 7.6.dbs-6 Wietse Venema's TCP
wrappers libra ii libx11-6 4.3.0.dfsg.1-10 X Window System protocol client
li ii libxext6 4.3.0.dfsg.1-10 X Window System miscellaneous exte ii
libxml2 2.6.11-5 GNOME XML library ii metacity [x-window-manag 1:2.8.8-1 A
lightweight GTK2 based Window Ma ii wmaker [x-window-manager 0.91.0-2
NeXTSTEP-like window manager for X ii xbase-clients 4.3.0.dfsg.1-10
miscellaneous X clients ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB)
configu ii xterm [x-terminal-emulat 4.3.0.dfsg.1-10 X terminal emulator ii
zlib1g 1:1.2.2-3 compression library - runtime

-- debconf information:
  gdm/daemon_name: /usr/bin/gdm
  shared/default-x-display-manager: gdm