commit de041b97d2017447e4142e1230dcac48abd270bd Author: Cole Robinson <crobinso@redhat.com> Date: Mon Nov 22 11:18:55 2010 -0500 virt-install: Fix locale error if piped to pager Not really sure what's going on, and I can only reproduce if commenting the setlocale call in setupGettext, but there is a bz about it: https://bugzilla.redhat.com/show_bug.cgi?id=655328 diff --git a/virtinst/cli.py b/virtinst/cli.py index 8ed6534..352a05b 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -75,6 +75,8 @@ class VirtOptionParser(OptionParser): encoding = getattr(f, "encoding", None) if not encoding: (dummy, encoding) = locale.getlocale() + if not encoding: + encoding = "UTF-8" return encoding def print_help(self, file=None):