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.
2 parents 6d5d04e + e84a970 commit cc9e394Copy full SHA for cc9e394
Foundation/Process.swift
@@ -632,7 +632,7 @@ open class Process: NSObject {
632
633
let workingDirectory = currentDirectoryURL?.path ?? FileManager.default.currentDirectoryPath
634
try quoteWindowsCommandLine(command).withCString(encodedAs: UTF16.self) { wszCommandLine in
635
- try workingDirectory.withCString(encodedAs: UTF16.self) { wszCurrentDirectory in
+ try FileManager.default._fileSystemRepresentation(withPath: workingDirectory) { wszCurrentDirectory in
636
try szEnvironment.withCString(encodedAs: UTF16.self) { wszEnvironment in
637
if !CreateProcessW(nil, UnsafeMutablePointer<WCHAR>(mutating: wszCommandLine),
638
nil, nil, true,
0 commit comments