We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82b06db commit 8a0ae57Copy full SHA for 8a0ae57
runtime/bin/process_patch.dart
@@ -233,7 +233,14 @@ class _ProcessImpl extends _ProcessImplNativeWrapper implements Process {
233
if (path is! String) {
234
throw new ArgumentError("Path is not a String: $path");
235
}
236
- _path = path;
+
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
+ }
244
245
if (arguments is! List) {
246
throw new ArgumentError("Arguments is not a List: $arguments");
0 commit comments