https://bugs.winehq.org/show_bug.cgi?id=33494
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- Thanks for the reply. This is what I get in wine:
import tempfile
fixme:msvcrt:MSVCRT__wsopen_s : pmode 0x81b6 ignored
tempfile.gettempdir()
'c:\users\wine\temp'
So I think this was fixed since your first test. I will test in older wine versions later to check if I can reproduce the original problem.