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:
parent
7a8b188569
commit
e4bb1560c5
|
@ -243,6 +243,10 @@ bool SaveBoard( wxString& aFileName, BOARD* aBoard, IO_MGR::PCB_FILE_T aFormat,
|
||||||
aBoard->BuildConnectivity();
|
aBoard->BuildConnectivity();
|
||||||
aBoard->SynchronizeNetsAndNetClasses();
|
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
|
try
|
||||||
{
|
{
|
||||||
IO_MGR::Save( aFormat, aFileName, aBoard, nullptr );
|
IO_MGR::Save( aFormat, aFileName, aBoard, nullptr );
|
||||||
|
|
Loading…
Reference in New Issue