We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6167997 commit e84a970Copy full SHA for e84a970
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