command-not-found crashed in advise with: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 45: ordinal not in range(128)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
On an up-to-date 12.04 installation, swedish language:
$ LC_ALL=C chuck
Sorry, command-not-found has crashed! Please file a bug report at:
https:/
Please include the following information with the report:
command-not-found version: 0.2.44
(note: the command "chuck" is not currently installed)
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: command-not-found 0.2.46ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-10-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Tue Jan 24 09:33:11 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120103)
PackageArchitec
SourcePackage: command-not-found
UpgradeStatus: No upgrade log present (probably fresh install)
I have a patch that will eventually address this problem but for the moment let me just state that C locale is broken by design and prevents python from working with UTF-8 (at all). Don't use it.