Skip to content

Commit 45f892d

Browse files
zichanggcommit-bot@chromium.org
authored andcommitted
Revert "[vm] escape path when creating process on Windows"
This reverts commit 8a0ae57. Reason for revert: Block 'flutter upgrade'. The manual escaped string should be escaped again. Original change's description: > [vm] escape path when creating process on Windows > > path may contain spaces. When it is passed into CreatProcessW, it will interpret in several ways. Escape path for CreateProcessW to remove ambiguity. > The api doc of CreateProcessW: https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw#parameters > > Bug: #37751 > Change-Id: Ia3486d9a8c6b38c526c651dd6a801e0b8dad8655 > Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112267 > Reviewed-by: Siva Annamalai <[email protected]> > Commit-Queue: Zichang Guo <[email protected]> [email protected],[email protected],[email protected] # Not skipping CQ checks because original CL landed > 1 day ago. Bug: #37751 Change-Id: Ifae15d01b96d91ee88b24469e08ecb4ecc97a832 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112921 Reviewed-by: Zichang Guo <[email protected]> Reviewed-by: Siva Annamalai <[email protected]> Commit-Queue: Zichang Guo <[email protected]>
1 parent f53388b commit 45f892d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

runtime/bin/process_patch.dart

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,7 @@ class _ProcessImpl extends _ProcessImplNativeWrapper implements Process {
233233
if (path is! String) {
234234
throw new ArgumentError("Path is not a String: $path");
235235
}
236-
237-
if (Platform.isWindows) {
238-
// Escape paths that may contain spaces
239-
// Bug: https://github.com/dart-lang/sdk/issues/37751
240-
_path = _windowsArgumentEscape(path);
241-
} else {
242-
_path = path;
243-
}
236+
_path = path;
244237

245238
if (arguments is! List) {
246239
throw new ArgumentError("Arguments is not a List: $arguments");

0 commit comments

Comments
 (0)