Open GoogleCodeExporter opened 9 years ago
Sorry it was unicode not unidecode
Original comment by joaoh88
on 12 Dec 2013 at 4:46
This simple patch solves the problem when building on windows with usernames
with non-ascii letters.
On the file pylib/gyp/easy_xml.py
Simply find this pieace of code
# It has changed, write it
if existing != xml_string:
f = open(path, 'w')
f.write(xml_string)
f.close()
and change to something like this:
# It has changed, write it
if existing != xml_string:
f = open(path, 'w')
try:
xml_string = xml_string.encode(encoding)
except Exception:
xml_string = unicode(xml_string, 'latin-1').encode(encoding)
f.write(xml_string)
f.close()
Original comment by joaoh88
on 28 Jun 2014 at 3:45
Original issue reported on code.google.com by
joaoh88
on 12 Dec 2013 at 4:41Attachments: