Open NulAsh opened 1 month ago
Is this what causes the "unicode codec" bug? Thanks for the investigation. I will keep it in mind.
It may be the reason why Python 3.12 can't find it's own directory without explicitly specifying it in environment variables. Also this may be the reason why pip is not installed.
When we are calling RegGetValue and flags have RRF_RT_REG_EXPAND_SZ bit set, and RRF_NOEXPAND bit not set, function returns ERROR_INVALID_PARAMETER. This is a bug in Windows 7, not described in documentation, and was fixed in Windows 8.1. Here's the result of decompilation of buggy function in
C:\Windows\syswow64\kernel32.dll
:Due to this bug, py.exe from Python 3.12 does not work in Windows 7. Because
_registryReadString
fromPC/launcher2.c
have this code: