run whatever inexistent commands, such as 'asdf', got command-not-found has crashed!

Bug #312650 reported by chinalinux
This bug report is a duplicate of:  Bug #282446: command-not-found has crashed. Edit Remove
2
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: command-not-found

# asdf
Sorry, command-not-found has crashed! Please file a bug report at:
https://bugs.launchpad.net/ubuntu/+source/command-not-found
Please include the following information with the report:

command-not-found version: 0.2.21
Python version: 2.5.2 final 0
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
Exception information:

'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/CommandNotFound/util.py", line 32, in crash_guard
    callback()
  File "/usr/lib/command-not-found", line 15, in main
    parser = OptionParser(version = __version__, usage=_("%prog [options] <command-name>"))
  File "/usr/lib/python2.5/gettext.py", line 584, in lgettext
    return ldgettext(_current_domain, message)
  File "/usr/lib/python2.5/gettext.py", line 556, in ldgettext
    return t.lgettext(message)
  File "/usr/lib/python2.5/gettext.py", line 366, in lgettext
    return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-8: ordinal not in range(128)
-bash: asdf command not found

PS: I run the command mentioned above on the console(CTRL+ALT+F1), my OS version is Ubuntu 8.10, the environment variable LANG=zh_CN.UTF-8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.