diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-08-17 23:04:44 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-08-17 23:05:48 +0300 |
commit | bcb44e22e30d07dbbcaa4683e6b43f534227703c (patch) | |
tree | ee7b0189bba6a13db13e36f04956b84c1ba3facd | |
parent | bff2b8740aba888bd67ee93198abc8fa0e116b80 (diff) |
Fix escaping of parameters in response file generation for Windows. Fixes #1471. Possibly related to the problem reported in #1533.
-rw-r--r-- | tools/response_file.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/response_file.py b/tools/response_file.py index 312cda73..f19cf8af 100644 --- a/tools/response_file.py +++ b/tools/response_file.py @@ -6,8 +6,8 @@ def create_response_file(args, directory): (response_fd, response_filename) = tempfile.mkstemp(prefix='emscripten_', suffix='.rsp', dir=directory, text=True) response_fd = os.fdopen(response_fd, "w") #print >> sys.stderr, "Creating response file '%s'" % response_filename - args = map(lambda p: p.replace(' ', '').replace('\\', '\\\\').replace('"', '\\"'), args) - response_fd.write(' '.join(args)) + args = map(lambda p: p.replace('\\', '\\\\').replace('"', '\\"'), args) + response_fd.write('"' + '" "'.join(args) + '"') response_fd.close() return response_filename |