File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 22{-# LANGUAGE TypeApplications #-}
33{-# LANGUAGE BangPatterns #-}
44{-# LANGUAGE ViewPatterns #-}
5- {-# LANGUAGE QuasiQuotes #-}
65
76module System.File.OsPath.Internal where
87
Original file line number Diff line number Diff line change 11{-# LANGUAGE CPP #-}
22{-# LANGUAGE TypeApplications #-}
3- {-# LANGUAGE QuasiQuotes #-}
43{-# LANGUAGE PackageImports #-}
54
65module System.File.Platform where
@@ -13,7 +12,7 @@ import qualified System.OsPath.Windows as WS
1312import Foreign.C.Types
1413
1514import qualified System.OsString.Windows as WS hiding (decodeFS )
16- import System.OsString.Windows ( pstr , WindowsString )
15+ import System.OsString.Windows ( unsafeEncodeUtf , WindowsString )
1716import qualified System.Win32 as Win32
1817import qualified System.Win32.WindowsString.File as WS
1918import System.Win32.WindowsString.Types (withTString , peekTString )
@@ -160,7 +159,7 @@ findTempName :: (WindowsString, WindowsString)
160159findTempName (prefix, suffix) loc tmp_dir mode = go
161160 where
162161 go = do
163- let label = if prefix == mempty then [ pstr | ghc|] else prefix
162+ let label = if prefix == mempty then unsafeEncodeUtf " ghc" else prefix
164163#if MIN_VERSION_Win32(2, 14, 0)
165164 withFilePath tmp_dir $ \ c_tmp_dir ->
166165#else
You can’t perform that action at this time.
0 commit comments