A slow-but-working trick for proper local decimal separator handling (tickets 4020 and possibly 4631)#2708
A slow-but-working trick for proper local decimal separator handling (tickets 4020 and possibly 4631)#2708atrosinenko wants to merge 1 commit intoOpenModelica:masterfrom atrosinenko:local_decimal_point
Conversation
|
Could this be merged or maybe it should be somehow improved? Sure, it is quite hackish solution, on the other hand, it does not introduce any new external dependencies. This issue is quite cruel, because, being in a hurry, it is quite misleading to see your "host" application silently closing. Normally this would suggest that some crash occurred. |
|
There exists much nicer versions of this functionality, for example in ModelicaIO.c using We used to have a complete copy of a locale-independent |
|
Note that if we implement this, we should have it in one of the |
Supposing reading JSON is a slow path only executed during an initialization of an FMU that can crash the entire process loading an FMU while decimal separator is not a
., this kludge (learned from a colleague of mine, and probably reinvented hundreds of time :) ) that although being slow is quite simple and does not introduce any new external dependencies.