Reviewed this issue with Oneiric Beta2, updating command-not-found to 0.2.44ubuntu1. With the bogus Simplified Chinese test, command-not-found does not throw an exception.
However, the output text does not appear to coincide with the language encoding of the shell environment. Compare the following, Natty vs. Oneiric Beta2:
u@u-VirtualBox:~$ mgcc
No command 'mgcc' found, did you mean:
Command 'mlcc' from package 'mlterm-tools' (universe)
Command 'cgcc' from package 'sparse' (multiverse)
Command 'gcc' from package 'gcc' (main)
Command 'gcc' from package 'pentium-builder' (universe)
mgcc: command not found
Reviewed this issue with Oneiric Beta2, updating command-not-found to 0.2.44ubuntu1. With the bogus Simplified Chinese test, command-not-found does not throw an exception.
However, the output text does not appear to coincide with the language encoding of the shell environment. Compare the following, Natty vs. Oneiric Beta2:
=== Natty. command-not-found 0.2.41ubuntu2 ===
u@u-VirtualBox:~$ 我
我:找不到命令
u@u-VirtualBox:~$ mgcc
未找到 'mgcc' 命令,您要输入的是否是:
命令 'mlcc' 来自于包 'mlterm-tools' (universe)
命令 'cgcc' 来自于包 'sparse' (multiverse)
命令 'gcc' 来自于包 'gcc' (main)
命令 'gcc' 来自于包 'pentium-builder' (universe)
mgcc:找不到命令
u@u-VirtualBox:~$
u@u-VirtualBox:~$ locale zh_CN:en_ US:en "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" ON="zh_ CN.UTF- 8"
LANG=zh_CN.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
=== Oneiric Beta2. command-not-found 0.2.44ubuntu1 ===
u@u-VirtualBox:~$ 我
我: command not found
u@u-VirtualBox:~$ mgcc
No command 'mgcc' found, did you mean:
Command 'mlcc' from package 'mlterm-tools' (universe)
Command 'cgcc' from package 'sparse' (multiverse)
Command 'gcc' from package 'gcc' (main)
Command 'gcc' from package 'pentium-builder' (universe)
mgcc: command not found
u@u-VirtualBox:~$ locale zh_CN:en_ US:en zh_CN.UTF- 8 "zh_CN. UTF-8" "zh_CN. UTF-8" zh_CN.UTF- 8 "zh_CN. UTF-8" zh_CN.UTF- 8 "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" "zh_CN. UTF-8" ON="zh_ CN.UTF- 8"
LANG=zh_CN.UTF-8
LANGUAGE=
LC_CTYPE=
LC_NUMERIC=
LC_TIME=
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=
LC_NAME=
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=