Assume sys.stdout handles unicode.
Probably a bit cleaner.
---
cli.py | 2 +-
yum/misc.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cli.py b/cli.py
index afa7447..57c5b73 100755
--- a/cli.py
+++ b/cli.py
@@ -581,7 +581,7 @@ class YumBaseCli(yum.YumBase, output.YumOutput):
print _('ERROR with transaction check vs depsolve:')
for msg in msgs:
- print to_utf8(msg)
+ print to_unicode(msg)
if rpmlib_only:
return 1, [_('RPM needs to be updated')]
diff --git a/yum/misc.py b/yum/misc.py
index 5321003..b133aac 100644
--- a/yum/misc.py
+++ b/yum/misc.py
@@ -1005,7 +1005,7 @@ def setup_locale(override_codecs=True,
override_time=False):
os.environ['LC_ALL'] = 'C'
locale.setlocale(locale.LC_ALL, 'C')
- if override_codecs:
+ if override_codecs or True:
import codecs
sys.stdout =
codecs.getwriter(locale.getpreferredencoding())(sys.stdout)
sys.stdout.errors = 'replace'
--
1.7.4.4
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel