We currently face the problem that an external component (we unfortunately don't know which one) that is loaded when using the Windows file open/save dialog one some systems changes the locale of the process, probably by making the call setlocale(LC_ALL, "")
.
This messes up our application, because it relies on the standard locale being set (which is not changed by any of our own components during runtime).
So we need to make sure that either setlocale()
never has any effect when called within the process, or we need to detect whenever this function is called and then reset the locale to the default "C" locale.
Is there a way to achieve either of these goals?