System.Directory.getTemporaryDirectory broken on Windows
31 Mar
2007
31 Mar
'07
7:14 p.m.
Hi, getTemporaryDirectory is defined as: getTemporaryDirectory :: IO FilePath getTemporaryDirectory = do #if defined(mingw32_HOST_OS) allocaBytes long_path_size $ \pPath -> do r <- c_GetTempPath (fromIntegral long_path_size) pPath peekCString pPath #else catch (getEnv "TMPDIR") (\ex -> return "/tmp") #endif However, taking a look at the generated files that ship with WinHugs Sep 2006, the code is the #else case - a catch and TMPDIR. This means that function doesn't work on Windows properly Any idea how this happened? I will try recompiling the libraries after Easter. Should mingw32_HOST_OS be defined with our build system on Windows? Thanks Neil
7012
Age (days ago)
7012
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neil Mitchell