This commit is contained in:
2020-03-08 23:54:41 +01:00
parent 18f891f261
commit b87d252fec
9 changed files with 306 additions and 123 deletions

View File

@@ -219,9 +219,9 @@ toProcessError exe args mps = case mps of
-- | Convert the String to a ByteString with the current
-- system encoding.
unsafePathToString :: Path b -> IO FilePath
unsafePathToString (Path p) = do
unsafePathToString p = do
enc <- getLocaleEncoding
unsafeUseAsCStringLen p (peekCStringLen enc)
unsafeUseAsCStringLen (toFilePath p) (peekCStringLen enc)
-- | Search for a file in the search paths.