Allow building on paths with Unicode characters

This now works since the upgrade to Python 3, so we can remove
this code which prevents mach from running in these situations.
This commit is contained in:
Martin Robinson 2023-06-22 12:24:50 +02:00
parent 7aaad0aa7e
commit e22ae5daea
No known key found for this signature in database
GPG key ID: D56AA4FA55EFE6F8

View file

@ -266,16 +266,6 @@ def bootstrap(topdir):
topdir = os.path.abspath(topdir)
# We don't support paths with Unicode characters for now
# https://github.com/servo/servo/issues/10002
try:
# Trick to support both python2 and python3
topdir.encode().decode('ascii')
except UnicodeDecodeError:
print('Cannot run mach in a path with Unicode characters.')
print('Current path:', topdir)
sys.exit(1)
# We don't support paths with spaces for now
# https://github.com/servo/servo/issues/9442
if ' ' in topdir: