etckeeper runs bzr without a locale set from cron script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
etckeeper (Ubuntu) |
Fix Released
|
High
|
Dustin Kirkland | ||
Oneiric |
Fix Released
|
High
|
Dustin Kirkland |
Bug Description
Binary package hint: bzr
on oneiric:
/etc/cron.
bzr: failed to report crash using apport:
AssertionE
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/usr/lib/
return the_callable(*args, **kwargs)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
no_recurse, action=action, save=not dry_run)
File "/usr/lib/
return unbound(self, *args, **kwargs)
File "/usr/lib/
for subf in sorted(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 34: ordinal not in range(128)
bzr 2.4b2 on python 2.7.2rc1 (Linux-
Ubuntu-
arguments: ['/usr/bin/bzr', 'add', '-q', '.']
plugins: bash_completion
changelog_
netrc_
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: None
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
etckeeper warning: bzr add failed
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: bzr 2.4.0~beta2-
ProcVersionSign
Uname: Linux 2.6.39-3-generic i686
NonfreeKernelMo
Architecture: i386
Date: Thu Jun 2 14:56:20 2011
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100331)
PackageArchitec
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=
SourcePackage: bzr
UpgradeStatus: Upgraded to oneiric on 2011-05-09 (24 days ago)
Changed in etckeeper (Ubuntu): | |
importance: | Undecided → High |
assignee: | nobody → Dustin Kirkland (kirkland) |
status: | Confirmed → In Progress |
tags: |
added: verification-done removed: verification-needed |
As I said in bug 393038 comment 7 this issue is filed as bug 715547.
What's interesting in your case here is that you have `fsenc: 'ANSI_X3.4-1968'` (ie, Bazaar is being told that all your filenames are ascii-only) even though you have `LANG=en_US.UTF-8`. I suggest you double check your environment to make sure that your locales are correctly installed, and that there aren't any LC_* variables overriding that setting.
It may be you need to file a bug against etckeeper if it's to blame for the cron job being run in the C locale rather than your set LANG preference.