Your message dated Wed, 16 Apr 2008 19:41:04 -0200
with message-id <[EMAIL PROTECTED]>
and subject line closing #387740
has caused the Debian Bug report #387740,
regarding apticron: apt-listchanges fails with unset locales
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
387740: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=387740
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: apticron
Version: 1.1.18
Severity: normal
The apt-listchanges output of apticron cron job fails for some days
now with the following error message:
--------------- schnipp ---------------------
Package Details:
Lese Changelogs...
Traceback (most recent call last):
File "/usr/bin/apt-listchanges", line 210, in ?
main()
File "/usr/bin/apt-listchanges", line 163, in main
header = _('Changes for %s') % package
File "/usr/lib/python2.4/gettext.py", line 353, in lgettext
return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 0:
ordinal not in range(128)
--------------- schnipp ---------------------
If I run apticron from shell, everything seems to work correct, but in
shell I have the environment variable LANG set to "de_DE", while cron
seems to use an undefined LANG variable.
So running
# apticron
works correct, while
# env -u LANG apticron
also fails on the command line.
I'm not sure, whether this should be reported against apticron or
apt-listchanges, but for me it only fails when using apticron. As a
workaround for this problem, I added
LANG=de_DE
export LANG
before running apticron to /etc/cron.daily/apticron (didn't test it
right now, but I think this should solve the problem), but this
requires to have de_DE locales installed, which isn't the default.
Any other 8bit locale should also work, but where should we get the
information from, what locale is available on a system? No idea at
the moment, anyway, this is a bug...
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-amd64-k8
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)
Versions of packages apticron depends on:
ii apt 0.6.45 Advanced front-end for dpkg
ii apt-listchanges 2.63 Display change history from .deb a
ii debconf [debconf 1.5.3 Debian configuration management sy
ii iproute 20051007-4 Professional tools to control the
ii mailx 1:8.1.2-0.20050715cvs-1 A simple mail user agent
apticron recommends no packages.
-- debconf information:
* apticron/notification: root
Tschoeeee
Roland
--
* [EMAIL PROTECTED] * http://www.spinnaker.de/ *
--- End Message ---
--- Begin Message ---
I'm closing this bug since we didn't have any answer from the submitter and
the problem was probably already fixed.
Regards,
--
Tássia Camões Araújo
--- End Message ---