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
You can't change the locale if you're a library. It affects everything else that's also loaded and can actually cause locale related operations in other threads to crash. Apart from all the fun logic errors that can happen in applications that at least assume the decimal separator to be constant.
Just use sscanf_l (_sscanf_l on windows) and do it right. Or use C++ streams where the locale can be set locally as well.
The text was updated successfully, but these errors were encountered:
You can't change the locale if you're a library. It affects everything else that's also loaded and can actually cause locale related operations in other threads to crash. Apart from all the fun logic errors that can happen in applications that at least assume the decimal separator to be constant.
Just use sscanf_l (_sscanf_l on windows) and do it right. Or use C++ streams where the locale can be set locally as well.
The text was updated successfully, but these errors were encountered: