install.py: use surrogateescape for Python >=3.2
authorZac Medico <zmedico@gentoo.org>
Fri, 21 Jun 2013 23:07:31 +0000 (16:07 -0700)
committerZac Medico <zmedico@gentoo.org>
Fri, 21 Jun 2013 23:07:31 +0000 (16:07 -0700)
commitd31b8be0806815b1c01f36ec4b83126b1483c8b6
tree6a619a2a68396d617febe6e21b2abeb74d1e0c18
parentdf28e9e85a16b0a00f511a42038aa5d2eed615bd
install.py: use surrogateescape for Python >=3.2

We can't trust that the filesystem encoding (locale dependent)
correctly matches the arguments, so use surrogateescape to
pass through the original argv bytes for Python 3.
Since Python <3.2 does not support bytes in Popen args, trust
the locale in that case.
bin/install.py