From e22ae5daea970f1701c082510ac80ed9e7f6d0b6 Mon Sep 17 00:00:00 2001 From: Martin Robinson Date: Thu, 22 Jun 2023 12:24:50 +0200 Subject: 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. --- python/mach_bootstrap.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'python/mach_bootstrap.py') diff --git a/python/mach_bootstrap.py b/python/mach_bootstrap.py index dec54260839..2d3d5ce8a4f 100644 --- a/python/mach_bootstrap.py +++ b/python/mach_bootstrap.py @@ -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: -- cgit v1.2.3