# HG changeset patch # User hodgestar # Date 1286747775 0 # Node ID bc0db933706f9bc441e2e5dfad46999e73391c76 # Parent 5bbcbc18cc31efd172c2052f1b8877459617a6b2 0.6dev: Merged [917] from trunk. diff --git a/bitten/build/api.py b/bitten/build/api.py --- 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):