diff --git a/kicad/cli/command_export_pcb_step.cpp b/kicad/cli/command_export_pcb_step.cpp index d5d014721b..4a000cf94a 100644 --- a/kicad/cli/command_export_pcb_step.cpp +++ b/kicad/cli/command_export_pcb_step.cpp @@ -23,6 +23,7 @@ #include "jobs/job_export_pcb_step.h" #include #include +#include #include @@ -102,6 +103,9 @@ int CLI::EXPORT_PCB_STEP_COMMAND::Perform( KIWAY& aKiway ) step->m_boardOnly = m_argParser.get( ARG_BOARD_ONLY ); wxString userOrigin = FROM_UTF8( m_argParser.get( ARG_USER_ORIGIN ).c_str() ); + + LOCALE_IO dummy; // Switch to "C" locale + if( !userOrigin.IsEmpty() ) { std::regex re_pattern( REGEX_QUANTITY REGEX_DELIMITER REGEX_QUANTITY REGEX_UNIT,