diff --git a/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp b/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp index 13c1181a79..26a7adcd67 100644 --- a/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp +++ b/pcbnew/python/scripting/pcbnew_scripting_helpers.cpp @@ -98,6 +98,10 @@ SETTINGS_MANAGER* GetSettingsManager() PROJECT* GetDefaultProject() { + // For some reasons, LoadProject() needs a C locale, so ensure we have the right locale + // This is mainly when running QA Python tests + LOCALE_IO dummy; + PROJECT* project = GetSettingsManager()->GetProject( "" ); if( !project )