Merge branch 'master' into ospath
This commit is contained in:
commit
c309edb8fb
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ bytesFromOsPath :: OsPath -> RawFilePath
|
||||||
-- On Windows, OsString contains a ShortByteString that is
|
-- On Windows, OsString contains a ShortByteString that is
|
||||||
-- utf-16 encoded, but RawFilePath is utf-8.
|
-- utf-16 encoded, but RawFilePath is utf-8.
|
||||||
-- So this is relatively expensive conversion.
|
-- So this is relatively expensive conversion.
|
||||||
bytesFromOsPath = toRawFilePath . cWcharsToChars_UCS2 . BS16.unpack . getWindowsString
|
bytesFromOsPath = toRawFilePath . cWcharsToChars_UCS2 . BS16.unpack . getWindowsString . getOsString
|
||||||
#else
|
#else
|
||||||
bytesFromOsPath :: OsPath -> ShortByteString
|
bytesFromOsPath :: OsPath -> ShortByteString
|
||||||
bytesFromOsPath = getPosixString . getOsString
|
bytesFromOsPath = getPosixString . getOsString
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue