You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: The float number and date parsing may fail in other countries, that is: where a system locale is set that is not English.
The reason for that is that you use the StrToFloat variant without the TFormatSettings parameter (two locations in TOMLParser.pas). This variant uses the system locale which may or may not match the TOML specification.
Solution: change these two code locations to use the StrToFloat variant that takes a second parameter of type TFormatSettings and specify settings that you created explicitly, e.g. by calling TFormatSettings.Create('en-US').
The text was updated successfully, but these errors were encountered:
Problem: The float number and date parsing may fail in other countries, that is: where a system locale is set that is not English.
The reason for that is that you use the
StrToFloat
variant without theTFormatSettings
parameter (two locations in TOMLParser.pas). This variant uses the system locale which may or may not match the TOML specification.Solution: change these two code locations to use the
StrToFloat
variant that takes a second parameter of typeTFormatSettings
and specify settings that you created explicitly, e.g. by callingTFormatSettings.Create('en-US')
.The text was updated successfully, but these errors were encountered: