Corrupt non-Latin environment-variables in Windows
Original Reporter info from Mantis: IgorKokarev
-
Reporter name: Igor Kokarev
Original Reporter info from Mantis: IgorKokarev
- Reporter name: Igor Kokarev
Description:
Lazarus 2.0.10 + FPC 3.2.0 (x86-64) returns corrupt non-Latin environment-variables when I use ExpandEnvironmentStringsW() under default GDB debugger.
When I run directly the EXE file everything is OK.
My app reads a path to App Data and Documents folders. And if my Windows profile name contain Russian symbols ("Игорь") returned path is wrong for any system variable.
Steps to reproduce:
Run the attached test project and see the text output.
Additional information:
This problem didn't appear in Lazarus 2.0.6 + FPC 3.0.4 (x86-64).
Conversation: https://forum.lazarus.freepascal.org/index.php?topic=50572.msg369542
Mantis conversion info:
- Mantis ID: 37349
- Version: 2.0.10