Subject: | Add %USERPROFILE% to list of env variables to check for tmpdir on Win32 |
The Win32API function GetTempPath checks TMP, TEMP and USERPROFILE: https://msdn.microsoft.com/en-us/library/windows/desktop/aa364992%28v=vs.85%29.aspx
File::Spec should do the same for Win32 here: https://metacpan.org/source/SMUELLER/PathTools-3.47/lib/File/Spec/Win32.pm#L71
Even though the Win32 order is different, I think USERPROFILE should be added at the end of the existing list rather than re-ordering it to avoid surprises.