mkstemp uses the TMPDIR, TEMP, or TMP environment variables (the first one installed) to determine where to put your temporary file. One of them is probably set to c:\docume~1\k0811260\locals~1\temp on your system . Release
echo %%tmp%%
etc .. in the command window ("DOS box") to find out for sure.
This is actually good, because some naive modules / programs (for example, those that invoke external OS commands) may get confused when the directory name contains a space due to citation problems.
source share