command-not-found crashed with UnicodeEncodeError in print_spelling_suggestion(): 'ascii' codec can't encode character u'\xe9' in position 26: ordinal not in range(128)

Bug #921557 reported by Jean-Baptiste Lallement
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
command-not-found (Ubuntu)
New
Medium
Unassigned

Bug Description

TEST CASE
1. On a french Precise run in a terminal:
$ LC_ALL=C thisapplicationdoesntexists

ACTUAL RESULT:
crash

EXPECTED RESULT
The usual command-not-found output when an application is not installed or doesn't exists

Note that I removed the call of main though crash_guard in command-not-found to catch this error otherwise it just says it crashed without any useful information.

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: command-not-found 0.2.46ubuntu1 [modified: usr/lib/command-not-found]
ProcVersionSignature: Ubuntu 3.2.0-10.17-generic 3.2.1
Uname: Linux 3.2.0-10-generic i686
ApportVersion: 1.91-0ubuntu1
Architecture: i386
Date: Wed Jan 25 14:13:15 2012
ExecutablePath: /usr/lib/command-not-found
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110209)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/command-not-found -- chunk
PythonArgs: [u'/usr/lib/command-not-found', u'--', u'chunk']
SourcePackage: command-not-found
Title: command-not-found crashed with UnicodeEncodeError in print_spelling_suggestion(): 'ascii' codec can't encode character u'\xe9' in position 26: ordinal not in range(128)
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
visibility: private → public
tags: added: qa-manual-testing
tags: removed: need-duplicate-check
description: updated
description: updated
Revision history for this message
Robert Roth (evfool) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug #920860, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

removing duplicate it crashes in a different function

Changed in command-not-found (Ubuntu):
importance: Undecided → Medium
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.