command-not-found's output get garbled with ja_JP.EUC-jp locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found (Ubuntu) |
Fix Released
|
Undecided
|
Michael Vogt |
Bug Description
% env LANG=ja_JP.EUC-JP /usr/bin/python /usr/lib/
the command above outputs UTF-8 output. (EUC-JP is correct)
Using lgettext() insterd of gettext() solve the probelem.
--- /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.
Bug #161160 duplicate of this report.
Relevant information from that bug:
"This is a patch: www.python. org/doc/ 2.4.2/lib/ node338. html"
http://