SysUtils.GetTempFileName returns garbage when system temp path contains non-ASCII characters
Original Reporter info from Mantis: Maxim @ganmax
-
Reporter name: Maxim Ganetsky
Original Reporter info from Mantis: Maxim @ganmax
- Reporter name: Maxim Ganetsky
Description:
SysUtils.GetTempFileName returns garbage when system temp path contains non-ASCII characters. See attached screenshot. Instead of garbage there should be 'Темп' word.
In my case I modified system TEMP environment variable to contain Cyrillic characters in order to reproduce the bug. But in general this bug will be triggered if user's account name will contain Cyrillic (and I think any other non-ASCII) characters.
Test program is attached.
Mantis conversion info:
- Mantis ID: 15233
- OS: Windows
- OS Build: XP SP2
- Build: rev. 14066 (2009/11/10)
- Platform: Win32
- Version: 2.3.1
- Monitored by: » Vladimir (Vladimir Zhirov), » dima_gsv (Dmitry)