Bug#244316: dpkg-shlibdeps: locales should be set to C when launching dpkg --search
Package: dpkg-dev
Version: 1.10.20
Severity: normal
In /usr/bin/dpkg-shlibdeps, line 197:
while (<P>) {
chomp;
if (m/^local diversion |^diversion by/) {
&warn("diversions involved - output may be incorrect");
print(STDERR " $_\n") || syserr("write diversion info to stderr");
} elsif (m=^(\S+(, \S+)*): (\S+)$=) {
push @{$pathpackages{$+}}, split(/, /, $1);
} else {
&warn("unknown output from dpkg --search: \`$_'");
}
}
dpkg messages are localized, so dpkg should be launch with locales set to C.
With French locales for examples, you can see the problem:
dh_shlibdeps
dpkg-shlibdeps: warning: unknown output from dpkg --search: `détourné par nvidia-glx de: /usr/lib/libGL.so.1'
dpkg-shlibdeps: warning: unknown output from dpkg --search: `détourné par nvidia-glx à: /usr/lib/nvidia/libGL.so.1.xlibmesa'
("détourné par" means "diversion by")
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.4-1-686
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro
Versions of packages dpkg-dev depends on:
ii binutils 2.14.90.0.7-6 The GNU assembler, linker and bina
ii cpio 2.5-1.1 GNU cpio -- a program to manage ar
ii make 3.80-6 The GNU version of the "make" util
ii patch 2.5.9-1 Apply a diff file to an original
ii perl [perl5] 5.8.3-3 Larry Wall's Practical Extraction
ii perl-modules 5.8.3-3 Core Perl modules.
-- no debconf information
Reply to: