Saving sketchup file with C++ SDK changes locale


I’m using sketchup sdk under c++ MFC application. My sketchupapi.dll version is 21.1.332.
I have an issue in release version of my program. When I call SUModelSaveToFile and specify a full path in utf8 encoding it changes the previously set LC_CTYPE locale. Before the call I have set this locale to ACP but immediately after the call I can see it was changed to C.
This does not happen in debug.

Do you have any suggestions? I could of course reset the locale after each call to SUModelSaveToFile but I think it’s not too elegant.


I suggest updating to the latest available SDK version 11.1 (SketchUp version 23.1.130).

Thanks for the suggestion. Just did that. But did not change anything.