Hey Y'All,
Ok, after asking the AI Bot, my investigation is now around the fact that in Linux, all this is managed by
setlocale.
Then, we can query for
LC_NUMERIC and the other such constants to fill
DefaultFormatSettings.
Actually, under the
clocale unit, this is already done. And I suspect that this is what's called internally in the process of getting such values when a GUI app is started.
But as I realised before, the
clocale is just a bunch of code that is called in it's
initiliazation, but does not provide such tools for us to play about!!!
The problem is this:
clocale DOES update
DefaultFormatSettings,
BUT it does so with only the system settings.
What we would wish is that somewhere the same code can be used with a string containing the language and change it to that.
I'm aware that it's rather
safe to only do this using the system's locale. This ensures that we get all correct stuff, since the user has taken care of that in the system's settings.
Nonetheless, I would prefer that this could be allowed to be handled by the programmer. This is an Open Source language, after all, and it's common in such an environment to be spoiled with choice.
While the core devs ponder my question, I'll copy
clocale to a test folder and see what I can hack. Even if it explodes in my face
@wp I'll keep you posted via private messages of my efforts!! If successful, we can add my code to the code you attached that works on Windows.
Cheers,
Gus