Recent

Author Topic: [SOLVED] Mess with the decimal separator  (Read 344 times)

CM630

  • Hero Member
  • *****
  • Posts: 1447
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
[SOLVED] Mess with the decimal separator
« on: June 11, 2025, 11:51:18 am »
There is some mess with the decimal separator in Linux Mint Mate (GTK).
In my local settings the decimal separator is comma, the OS widgets use decimal separator comma.
The Lazarus IDE uses decimal seprator comma.
But when I run an app, it starts showing whatever it wants  :o
TFloadSpinEdit works fine.
FloatTioString does not, nor does TAChart.



« Last Edit: June 11, 2025, 12:18:05 pm by CM630 »
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

Nimbus

  • Jr. Member
  • **
  • Posts: 63
Re: Mess with the decimal separator
« Reply #1 on: June 11, 2025, 12:06:04 pm »
Try including clocale unit and see if it helps
https://www.freepascal.org/docs-html/rtl/clocale/index.html

CM630

  • Hero Member
  • *****
  • Posts: 1447
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: [SOLVED] Mess with the decimal separator
« Reply #2 on: June 11, 2025, 12:18:28 pm »
Thanks, things seem fine now.
I suppose that I have to add it to every unit?

Edit: Thanks for the clarification in the next post.
« Last Edit: June 11, 2025, 02:33:25 pm by CM630 »
Лазар 4,0 32 bit (sometimes 64 bit); FPC3,2,2

Nimbus

  • Jr. Member
  • **
  • Posts: 63
Re: [SOLVED] Mess with the decimal separator
« Reply #3 on: June 11, 2025, 01:10:36 pm »
It should be enough to do in once - presumably in the program (*.lpr) file, same {$IFDEF UNIX} section where it imports cthreads unit in the beginning (in case of a Lazarus generated program).

 

TinyPortal © 2005-2018