FormatSettings do not support changing DefaultSystemCodePage
Original Reporter info from Mantis: Mattias @lazidealist
-
Reporter name: Mattias Gaertner
Original Reporter info from Mantis: Mattias @lazidealist
- Reporter name: Mattias Gaertner
Description:
When changing the DefaultSystemCodePage the FormatSettings still contain the settings in Windows codepage.
Calling GetFormatSettings calls internally GetLocaleStr, which queries the Ansi function instead of the W function.
Attached patch fixes this.
Steps to reproduce:
Use for example locale PT-BR.
SetMultiByteConversionCodePage(CP_UTF8);
GetFormatSettings;
LongDayNames[2] should be 'Terça-feira', but the ç is broken.
Mantis conversion info:
- Mantis ID: 27086
- Version: 2.7.1
- Monitored by: » luizamerico (Luiz Americo)