Oh, it also needs LC_ALL set for it to crash. This will crash if 'hello' isn't installed:
[EMAIL PROTECTED]:~$ LC_ALL=C LANG=en_GB.UTF-8 LANGUAGE=es /usr/bin/python /usr/lib/command-not-found -- hello 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 character u'\xab' in position 12: 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 24, in main CommandNotFound(options.data_dir).advise(args[0], options.ignore_installed) File "/usr/lib/python2.5/site-packages/CommandNotFound/CommandNotFound.py", line 137, in advise print >>sys.stderr, _("The program '%s' can be found in the following packages:") % command 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 character u'\xab' in position 12: ordinal not in range(128) [EMAIL PROTECTED]:~$ -- command-not-found has crashed https://bugs.launchpad.net/bugs/282446 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [EMAIL PROTECTED] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs -- universe-bugs mailing list universe-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/universe-bugs