command-not-found's output get garbled with ja_JP.EUC-jp locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
% env LANG=ja_JP.EUC-JP /usr/bin/python /usr/lib/
the command above outputs UTF-8 encoding string. (EUC-JP is expected)
Using lgettext() insterd of gettext() solve the probelem.
http://
Here is patch.
--- /usr/share/
+++ /usr/share/
@@ -2,7 +2,7 @@
# Licensed under GPL, see COPYING for the whole text
import sys, os, os.path, dbm, posix, grp
-from gettext import gettext as _
+from gettext import lgettext as _
import apt_pkg
from aptsources.