Unknown LC_CTYPE causes crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
command-not-found crashes when the LC_CTYPE is defined in the environment but is not installed. This can be seen via SSH which sets the LC_CTYPE.
$ env
TERM=xterm
SHELL=/bin/bash
<snip>
LANG=en_US.UTF-8
<snip>
LC_CTYPE=
$ foo
Sorry, command-not-found has crashed! Please file a bug report at:
https:/
Please include the following information with the report:
command-not-found version: 0.2.44
$ unset LC_CTYPE
$ foo
No command 'foo' found, did you mean:
Command 'fio' from package 'fio' (universe)
Command 'goo' from package 'goo' (universe)
Command 'fop' from package 'fop' (main)
Command 'fox' from package 'objcryst-fox' (universe)
Command 'xoo' from package 'xoo' (universe)
Command 'fgo' from package 'fgo' (universe)
Command 'zoo' from package 'zoo' (universe)
foo: command not found
Steps to reproduce:
Run "LC_CTYPE=foo f"
---
ApportVersion: 2.14.1-0ubuntu3.4
Architecture: amd64
DistroRelease: Ubuntu 14.04
Package: command-not-found 0.3ubuntu12
PackageArchitec
ProcVersionSign
Tags: trusty uec-images
Uname: Linux 3.13.0-36-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm dip plugdev sudo video
_MarkForUpload: True
Marking as confirmed, I can see this happen as well.