Xcode: replace all backslashes with eight backslashes. Because obviously.
This commit is contained in:
parent
3c64ecaf86
commit
8943945efe
|
@ -1405,6 +1405,10 @@ class XCodeBackend(backends.Backend):
|
|||
if args:
|
||||
quoted_args = []
|
||||
for a in args:
|
||||
# This works but
|
||||
# a) it's ugly as sin
|
||||
# b) I don't know why it works or why every backslash must be escaped into eight backslashes
|
||||
a = a.replace(chr(92), 8*chr(92)) # chr(92) is backslash, this how we smuggle it in without Python's quoting grabbing it.
|
||||
a = a.replace(r'"', r'\\\"')
|
||||
if ' ' in a:
|
||||
a = r'\"' + a + r'\"'
|
||||
|
|
Loading…
Reference in New Issue