[11.10 beta1] UnicodeDecodeError crash on localized input in multiple encodings/languages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
Fix Released
|
Critical
|
Zygmunt Krynicki | ||
command-not-found (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The command-not-found package crashes on input of a simplified chinese character representing a bogus command. The problem was found with in 11.10 beta1, for both the x86/i386 and amd64 systems. Debugging the python script in /usr/lib/
Here are further observations.
(1) With the same simplified chinese input, 11.04 handles the test case gracefully, returning a message
explaining that the command is not found.
(2) Between these two series, python has change: 11.04 (Python 2.7.1+) versus 11.10 beta1 (Python 2.7.2+).
To elaborate on this problem, the following files have been included:
(1) Screen shots showing step-by-step how to reproduce the bug. As switching to Simplified Chinese is
difficult to explain in words, a video was taken to show how this process.
(2) A screen shot showing /usr/lib/
This shows the zh_CN.UTF-8 byte stream input and the point where UnicodeDecodeError is thrown.
This issue was investigated in 11.10 beta1 host running in VirtualBox.
===
Taken from To_Reproduce_
01_After_
02_Open_
See the accompanying video for this process.
03_Enable_
environment variables. Click the IBUS keyboard icon
and select Pinyin input.
04_Pinyin_
05_Type_
correspond to the Chinese character representing 'I' or 'Myself'.
IBUS displays options. You want the first one. Hit the space
bar to choose it.
06_Chinese_
07_Crash_
08_Disable_
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: command-not-found 0.2.43ubuntu1 [modified: usr/lib/
ProcVersionSign
Uname: Linux 3.0.0-9-generic x86_64
Architecture: amd64
Date: Fri Sep 2 10:23:08 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110901)
PackageArchitec
SourcePackage: command-not-found
UpgradeStatus: No upgrade log present (probably fresh install)
Related branches
- Zygmunt Krynicki: Approve
-
Diff: 69 lines (+19/-4)2 files modifiedcommand-not-found (+18/-3)
setup.py (+1/-1)
Changed in command-not-found (Ubuntu): | |
status: | New → Confirmed |
Changed in command-not-found: | |
status: | New → In Progress |
assignee: | nobody → Zygmunt Krynicki (zkrynicki) |
Changed in command-not-found: | |
status: | Triaged → Fix Released |
To see the image and video file attachments, follow this - https:/ /chinstrap. canonical. com/~dchua/ bug_839609/