command-not-found has crashed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
New
|
Undecided
|
Unassigned |
Bug Description
I wrote (accidental) a not utf-8 character to bash commandline, and I got this:
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.3
Python version: 3.4.3 final 0
Distributor ID: LinuxMint
Description: Linux Mint 17.2 Rafaela
Release: 17.2
Codename: rafaela
Exception information:
'utf-8' codec can't encode character '\udcba' in position 0: surrogates not allowed
Traceback (most recent call last):
File "/usr/lib/
callback()
File "/usr/lib/
if not cnf.advise(args[0], options.
File "/usr/lib/
packages = self.getPackage
File "/usr/lib/
result.
File "/usr/lib/
result = self.db.
File "/usr/lib/
key = key.encode('utf-8')
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcba' in position 0: surrogates not allowed