SetCodePage transliterates to CP_NONE by deleting the string
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
This seems to be a Windows only problem. If you call e.g.
SetCodePage(s,CP_NONE,true);
Then s always ends up empty.
On Linux this works fine and "s" is unchanged.
Steps to reproduce:
Example Lazarus program attached. Just compile, run and enter some string as the test string. If the CP None checkbox is selected then "convert" gives an empty output. If WIN1252 checkbox is selected then the string is copied to the output.
Mantis conversion info:
- Mantis ID: 30622
- OS: Windows 7
- OS Build: 7
- Platform: Windows x64
- Version: 3.0.0
- Monitored by: » pda (Dmitriy Pomerantsev), » @lacak.sk (LacaK)