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

Bug#743311: /etc/cron.daily/apt: should export LC_CTYPE



Package: apt
Version: 0.9.16.1
Severity: minor

The apt cron script exports the following internationalization environment variables: LANG, LANGUAGE, LC_MESSAGES and LC_ALL.

But gettext uses LC_CTYPE for choosing character encoding, so you should export that too:

$ unset LC_ALL LANG LC_CTYPE

$ LC_MESSAGES=pl_PL.UTF-8 apt-get --help | grep Najcz
pakiet?w. Najcz??ciej u?ywane polecenia to update i install.

$ LC_MESSAGES=pl_PL.UTF-8 LC_CTYPE=pl_PL.UTF-8 apt-get --help | grep Najcz
pakietów. Najczęściej używane polecenia to update i install.


Note that this might be purely theoretical problem. cron(8) exports all the internationalization environment variables for you, via pam_env(8). anacron(8) doesn't, but it cannot handle non-ASCII output anyway. :\ I haven't checked other cron implementations (yet).


-- System Information:
Debian Release: jessie/sid
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

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

Versions of packages apt depends on:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.16-1.1
ii  libapt-pkg4.12          0.9.16.1
ii  libc6                   2.18-4
ii  libgcc1                 1:4.9-20140303-1
ii  libstdc++6              4.9-20140303-1

Versions of packages apt suggests:
pn  apt-doc                      <none>
pn  aptitude | synaptic | wajig  <none>
ii  dpkg-dev                     1.17.6
ii  python-apt                   0.9.3.4

--
Jakub Wilk


Reply to: