]> granicus.if.org Git - python/commit
Fix distutils’ check and register Unicode handling (#13114).
authorÉric Araujo <merwok@netwok.org>
Sun, 9 Oct 2011 05:11:19 +0000 (07:11 +0200)
committerÉric Araujo <merwok@netwok.org>
Sun, 9 Oct 2011 05:11:19 +0000 (07:11 +0200)
commit017e535bde6e869928e4fbb0249b12721340a46e
treedcca8b93ee9c3b8ca41563cf624050b0bed9edbf
parentece7079b54d9a6700558210339df02e4586f698c
Fix distutils’ check and register Unicode handling (#13114).

The check command was fixed by Kirill Kuzminykh.

The register command was using StringIO.getvalue, which uses “''.join”
and thus coerces to str using the default encoding (ASCII), so I changed
the code to use one extra intermediary list and correctly encode to
UTF-8.
Lib/distutils/command/check.py
Lib/distutils/command/register.py
Lib/distutils/tests/test_check.py
Lib/distutils/tests/test_register.py
Misc/ACKS
Misc/NEWS