Thousand separator does not follow regional preferences
Original Reporter info from Mantis: bmy92
-
Reporter name: Bernard Marcelly
Original Reporter info from Mantis: bmy92
- Reporter name: Bernard Marcelly
Description:
Reproduced on Windows XP and Windows 8, on two computers with fr-FR regional preferences :
Thousand separator used is : space
Decimal separator used is : comma
ShowMessage( Format('%10.0n', [1234567.0]) )
displays: 1?234?567
Delphi 7 on the same computer correctly gives : 1 234 567
ShowMessage( IntToStr(ord(ThousandSeparator)) )
displays : 160 instead of 32
Steps to reproduce:
ShowMessage( Format('%10.0n', [1234567.0]) )
ShowMessage( IntToStr(ord(ThousandSeparator)) )
Additional information:
FYI : Decimal separator is correctly handled by Format() and by DecimalSeparator.
Mantis conversion info:
- Mantis ID: 24011
- OS: Windows XP
- OS Build: SP3
- Platform: X86
- Version: 2.6.0
- Monitored by: » bmy92 (Bernard Marcelly)