Package: aptitude
Version: 0.6.3-3.1
Severity: normal
Tags: l10n

If LANGUAGE contains a non-english language code (and LANG is set), aptitude 
will show the non-english translation even though english is preferred:

env - LANG=en_US LC_CTYPE=en_US.UTF-8 LANGUAGE=en_GB:en:en_US:C:de_DE:de 
aptitude search wmakerconf-data
p   wmakerconf-data                 - Daten f�r wmakerconf, das Window Maker Kon

It doesn't happen if LANG is unset (i.e. it behaves as documented [1]):

sascha.si...@twin:~$ env - LC_CTYPE=en_US.UTF-8 
LANGUAGE=en_GB:en:en_US:C:de_DE:de aptitude search wmakerconf-data
p   wmakerconf-data                 - Data files for wmakerconf, a configuration


LC_CTYPE needs to be set to get UTF-8 output, otherwise the output is 
garbled/incomplete. It doesn't affect the translation selection.

I couldn't trigger the same behaviour in plain gettext (e.g. by running 
"gettext --help"), so I'm filing this against aptitude.


[1] file:///usr/share/doc/gettext-doc/gettext_2.html#SEC13

-- Package-specific info:
aptitude 0.6.3 compiled at Aug 26 2010 19:06:44
Compiler: g++ 4.4.5 20100816 (prerelease)
Compiled against:
  apt version 4.10.0
  NCurses version 5.7
  libsigc++ version: 2.2.4.2
  Ept support enabled.
  Gtk+ support disabled.

Current library versions:
  NCurses version: ncurses 5.7.20100313
  cwidget version: 0.5.16
  Apt version: 4.10.0
        linux-vdso.so.1 =>  (0x00007fa776233000)
        libapt-pkg.so.4.10 => /usr/lib/libapt-pkg.so.4.10 (0x00007fa775f26000)
        libncursesw.so.5 => /lib/libncursesw.so.5 (0x00007fa775cd3000)
        libsigc-2.0.so.0 => /usr/lib/libsigc-2.0.so.0 (0x00007fa775acd000)
        libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007fa775801000)
        libept.so.1 => /usr/lib/libept.so.1 (0x00007fa7755ad000)
        libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007fa7751cc000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007fa774fb5000)
        libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007fa774d1f000)
        libboost_iostreams.so.1.42.0 => /usr/lib/libboost_iostreams.so.1.42.0 
(0x00007fa774b03000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fa7748e7000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fa7745d3000)
        libm.so.6 => /lib/libm.so.6 (0x00007fa774350000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fa77413a000)
        libc.so.6 => /lib/libc.so.6 (0x00007fa773dd9000)
        libutil.so.1 => /lib/libutil.so.1 (0x00007fa773bd5000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007fa7739d1000)
        libuuid.so.1 => /lib/libuuid.so.1 (0x00007fa7737cc000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007fa7735bc000)
        librt.so.1 => /lib/librt.so.1 (0x00007fa7733b4000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fa776234000)
Terminal: xterm
$DISPLAY is set.
`which aptitude`: /usr/bin/aptitude
aptitude version information:

aptitude linkage:

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  apt [libapt-pkg4.10]    0.8.0            Advanced front-end for dpkg
ii  libboost-iostreams1.42. 1.42.0-4         Boost.Iostreams Library
ii  libc6                   2.11.2-3         Embedded GNU C Library: Shared lib
ii  libcwidget3             0.5.16-3         high-level terminal interface libr
ii  libept1                 1.0.3+b1         High-level library for managing De
ii  libgcc1                 1:4.4.4-11       GCC support library
ii  libncursesw5            5.7+20100313-2   shared libraries for terminal hand
ii  libsigc++-2.0-0c2a      2.2.4.2-1        type-safe Signal Framework for C++
ii  libsqlite3-0            3.7.2-1          SQLite 3 shared library
ii  libstdc++6              4.4.4-11         The GNU Standard C++ Library v3
ii  libxapian22             1.2.3-2          Search engine library
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages aptitude recommends:
ii  apt-xapian-index              0.38       maintenance tools for a Xapian ind
ii  aptitude-doc-en [aptitude-doc 0.6.3-3.1  English manual for aptitude, a ter
ii  libparse-debianchangelog-perl 1.1.1-2.1  parse Debian changelogs and output
ii  sensible-utils                0.0.4      Utilities for sensible alternative

Versions of packages aptitude suggests:
ii  debtags                       1.7.10+b1  Enables support for package tags
ii  tasksel                       2.82       Tool for selecting tasks for insta

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to