mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Auto merge of #10003 - qaxi:master, r=metajack
Patch handles exception with errormessage on topdir with Unicode characters. https://github.com/servo/servo/issues/10002 ./mach does not support paths with Unicode characters for now it fail on original line 154 with exception UnicodeDecodeError This patch handles the exception <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10003) <!-- Reviewable:end -->
This commit is contained in:
commit
42c7472f33
1 changed files with 9 additions and 0 deletions
|
@ -149,6 +149,15 @@ def _activate_virtualenv(topdir):
|
|||
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:
|
||||
topdir.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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue