[Bug 282446] Re: command-not-found has crashed

Michael Haack michael at weltenhuepfer.eu
Tue May 26 10:53:20 UTC 2009


Seems python or gettext get something wrong about UTF-8 encoding...

command-not-found version: 0.2.21
Python version: 2.6.2 final 0
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:        9.04
Codename:       jaunty
Exception information:

'ascii' codec can't encode character u'\xbb' in position 14: ordinal not in range(128)
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-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.6/dist-packages/CommandNotFound/CommandNotFound.py", line 151, in advise
    print >>sys.stderr, _("The program '%s' is currently not installed. ") % command,
  File "/usr/lib/python2.6/gettext.py", line 584, in lgettext
    return ldgettext(_current_domain, message)
  File "/usr/lib/python2.6/gettext.py", line 556, in ldgettext
    return t.lgettext(message)
  File "/usr/lib/python2.6/gettext.py", line 366, in lgettext
    return tmsg.encode(locale.getpreferredencoding())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbb' in position 14: ordinal not in range(128)

-- 
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
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list