Set locale in python save routine

Fixes https://gitlab.com/kicad/code/kicad/issues/11006

(cherry picked from commit c3496d61eb)
This commit is contained in:
Seth Hillbrand
2022-08-23 09:53:18 -07:00
parent 7a8b188569
commit e4bb1560c5
@@ -243,6 +243,10 @@ bool SaveBoard( wxString& aFileName, BOARD* aBoard, IO_MGR::PCB_FILE_T aFormat,
aBoard->BuildConnectivity();
aBoard->SynchronizeNetsAndNetClasses();
// Ensure the "C" locale is temporary set, before saving any file
// It also avoid wxWidget alerts about locale issues, later, when using Python 3
LOCALE_IO dummy;
try
{
IO_MGR::Save( aFormat, aFileName, aBoard, nullptr );