This bug is actually caused by invalid handling of input (sys.argv), not
output. When binary string (in utf-8) is coerced with unicode strings
(that are part of translated system messages) UnicodeDecode error is
raised as, by default, python coerces unicode and binary strings by
converting the binary string to unicode assuming ansi encoding.
A possible fix is to properly decode sys.argv arguments. I've tried this
by hard-coding UTF-8 input but it would be nice to fix this in general
too.
** Changed in: command-not-found
Status: In Progress => Triaged
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/839609
Title:
[11.10 beta1] UnicodeDecodeError crash on localized input in multiple
encodings/languages
To manage notifications about this bug go to:
https://bugs.launchpad.net/command-not-found/+bug/839609/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs