changeset 840:bc0db933706f 0.6.x

0.6dev: Merged [917] from trunk.
author hodgestar
date Sun, 10 Oct 2010 21:56:15 +0000
parents 5bbcbc18cc31
children 94deea9863a1
files bitten/build/api.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bitten/build/api.py
+++ b/bitten/build/api.py
@@ -44,7 +44,7 @@
     try:
         return text.decode('utf-8')
     except UnicodeDecodeError:
-        return text.decode(sys.stdout.encoding, 'replace')
+        return text.decode(getattr(sys.stdout, 'encoding', 'utf-8'), 'replace')
 
 
 class CommandLine(object):
Copyright (C) 2012-2017 Edgewall Software