patch for clocale and formatfloat when thousandseparator=#0
Original Reporter info from Mantis: Jesus @jramx
-
Reporter name: Jesus Reyes
Original Reporter info from Mantis: Jesus @jramx
- Reporter name: Jesus Reyes
Description:
when using clocale unit on serveral linux distros we find that ThousandSeparator=#0 and when using a format like '#,0.00 €' with a number like 1000 it ends with '1'. If thousandseparator=',' it would be formated like '1,000.00 €' it is clear that inserting a #0 in such string when separator is #0 is the problem. Attached is patch to fix it.
Related to this problem is that with clocale unit we can find monetary separator and use it if number separator=#0, this is to make it "more delphi compatible (if one is allowed to call it so)" because under windows number separator is never #0.
It may happen that monetary separator is also #0 but in this case like when the user manually set separator to #0 is handled above.
Mantis conversion info:
- Mantis ID: 13552
- Version: 2.3.1
- Fixed in version: 2.4.0
- Fixed in revision: 13029 (#1ad1eac9)