Set PYTHONIOENCODING='utf-8' so that unicode tests can pass on CPython on

systems where another encoding is set in the locale
pull/980/head
blmorris 2014-11-19 10:44:31 -05:00
rodzic 3bdb23d4d3
commit 9d1ca65b59
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -17,6 +17,9 @@ else:
CPYTHON3 = os.getenv('MICROPY_CPYTHON3', 'python3')
MICROPYTHON = os.getenv('MICROPY_MICROPYTHON', '../unix/micropython')
# Set PYTHONIOENCODING so that CPython will use utf-8 on systems which set another encoding in the locale
os.environ['PYTHONIOENCODING']='utf-8'
def rm_f(fname):
if os.path.exists(fname):
os.remove(fname)