Package: wmanager Version: 0.2.1-8 Severity: normal Hi,
When LANG=ja_JP.UTF-8 , wmanagerrc-update fails and empties ~/.wmanagerrc . | $ wmanagerrc-update | dpkg-query: --search ... (Japanese message here...) | ... | | $ cat ~/.wmanagerrc | $ (Japanese message is the same as below) | $ LANG=C dpkg-query --search | dpkg-query: --search needs at least one file name pattern argument | | Use --help for help about querying packages. This happens because wmanagerrc-update expects /usr/sbin/update-alternatives to output message in English, but it prints in Japanese. (Expected output) | $ LANG=C /usr/sbin/update-alternatives --display x-window-manager | x-window-manager - auto mode | link currently points to /usr/bin/dwm | /usr/bin/dwm - priority 20 | slave x-window-manager.1.gz: /usr/share/man/man1/dwm.1.gz | /usr/bin/tinywm - priority 20 | slave x-window-manager.1.gz: /usr/share/man/man1/tinywm.1.gz | Current 'best' version is '/usr/bin/dwm'. Workaround: When LANG=C , wmanagerrc-update works fine. | $ LANG=C wmanagerrc-update | $ cat ~/.wmanagerrc | dwm=/usr/bin/dwm.default | tinywm=/usr/bin/tinywm Patch: --- /usr/bin/wmanagerrc-update 2008-07-03 00:22:02.000000000 +0900 +++ ./wmanagerrc-update 2010-11-27 01:40:31.000000000 +0900 @@ -21,7 +21,7 @@ { cat "$HOME/.wmanagerrc.user" 2>/dev/null || true [ ! -x /usr/sbin/update-alternatives ] || - /usr/sbin/update-alternatives --display x-window-manager \ + LANG=C /usr/sbin/update-alternatives --display x-window-manager \ |perl -ne ' m{^(/.*) - priority (\d+)$} or next; push @{$p{$2}}, $1; Regards, Yohei -- $ LANG=C /usr/sbin/update-alternatives --version Debian update-alternatives version 1.15.8.5. Copyright (C) 1995 Ian Jackson. Copyright (C) 2000-2002 Wichert Akkerman. Copyright (C) 2009-2010 Raphael Hertzog. This is free software; see the GNU General Public License version 2 or later for copying conditions. There is NO warranty. $ locale LANG=ja_JP.UTF-8 LC_CTYPE="ja_JP.UTF-8" LC_NUMERIC="ja_JP.UTF-8" LC_TIME="ja_JP.UTF-8" LC_COLLATE="ja_JP.UTF-8" LC_MONETARY="ja_JP.UTF-8" LC_MESSAGES="ja_JP.UTF-8" LC_PAPER="ja_JP.UTF-8" LC_NAME="ja_JP.UTF-8" LC_ADDRESS="ja_JP.UTF-8" LC_TELEPHONE="ja_JP.UTF-8" LC_MEASUREMENT="ja_JP.UTF-8" LC_IDENTIFICATION="ja_JP.UTF-8" LC_ALL= -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core) Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages wmanager depends on: ii chase 0.5.2-4 Follow a symlink and print out its ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libfltk1.1 1.1.10-2+b1 Fast Light Toolkit - shared librar ii libgcc1 1:4.4.5-6 GCC support library ii libstdc++6 4.4.5-6 The GNU Standard C++ Library v3 ii perl [perl5] 5.10.1-16 Larry Wall's Practical Extraction wmanager recommends no packages. Versions of packages wmanager suggests: pn menu <none> (no description available) -- 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