[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#243237: locales: Setting default locale to en_US.ISO-8859-15 causes invalid LANG setting



Package: locales
Version: 2.3.2.ds1-11
Severity: important
Tags: sid

Using debian-installer I have installed a clean unstable system.
After installation I have done 'dpkg-reconfigure locales' and generated
the locales listed below in 'debconf information'.
I selected en_US.ISO-8859-15 as my default locale.
This also sets 'LANG=en_US.ISO-8859-15' in /etc/environment.

It appears this is an invalid setting, at least for the X Window environment.
If I start an application from a terminal (KDE's konsole), I get messages
like this:
  fjp@sauron:~$ xterm
  Warning: locale not supported by Xlib, locale set to C
or
  fjp@sauron:/etc$ kxsconfig phosphor
  Qt: Locales not supported on X server
or
  fjp@sauron:/etc$ vlc
  VLC media player 0.7.1 Bond
  Gdk-WARNING **: locale not supported by Xlib, locale set to C

In vlc this LANG setting even causes the application to crash when I select
text in an input field:
  Gdk-ERROR **: file gdkselection.c: \
  line 246 (gdk_string_to_compound_text): assertion failed: \
  (property.encoding == gdk_atom_intern ("COMPOUND_TEXT", FALSE) && property.format == 8)
  aborting...
  Aborted

An strace for this last situation is attached.

All problems disappear if I set LANG=C or LANG=en_US.

I do not know if the LANG setting itself is invalid or not, but the problems
it causes seem to me to be unacceptable.
I think other, similar locales may cause the same problems.


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-1-686
Locale: LANG=en_US.ISO-8859-15, LC_CTYPE=en_US.ISO-8859-15

Versions of packages locales depends on:
ii  debconf                     1.4.21       Debian configuration management sy
ii  libc6 [glibc-2.3.2.ds1-11]  2.3.2.ds1-11 GNU C Library: Shared libraries an

-- debconf information:
* locales/default_environment_locale: en_US
* locales/locales_to_be_generated:
  en_US ISO-8859-1, en_US.ISO-8859-15 ISO-8859-15, en_US.UTF-8 UTF-8,
  nl_NL ISO-8859-1, nl_NL.UTF-8 UTF-8, nl_NL.UTF-8@euro UTF-8, nl_NL@euro ISO-8859-15

Attachment: vlc_strace.txt.gz
Description: GNU Zip compressed data


Reply to: