mirror of https://gitlab.com/ita1024/waf.git
Merge branch 'py2-cp65001' into 'master'
Improve cp65001 compat in cpython < 3.3 See merge request ita1024/waf!2346
This commit is contained in:
commit
177bd3b0b1
|
@ -452,6 +452,8 @@ def console_encoding():
|
|||
pass
|
||||
else:
|
||||
if codepage:
|
||||
if 65001 == codepage and sys.version_info < (3, 3):
|
||||
return 'utf-8'
|
||||
return 'cp%d' % codepage
|
||||
return sys.stdout.encoding or ('cp1252' if is_win32 else 'latin-1')
|
||||
|
||||
|
|
Loading…
Reference in New Issue