Skip to content

Commit 6301cff

Browse files
committed
Merge pull request #570 from tito/fix-logger-encoding
Fix logger stdout/stderr encoding
2 parents 8588a3c + 9e443bf commit 6301cff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pythonforandroid/logger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
from collections import defaultdict
99
from colorama import Style as Colo_Style, Fore as Colo_Fore
1010

11+
import codecs
12+
stdout = codecs.getwriter('utf8')(stdout)
13+
stderr = codecs.getwriter('utf8')(stderr)
1114

1215
# monkey patch to show full output
1316
sh.ErrorReturnCode.truncate_cap = 999999

0 commit comments

Comments
 (0)