From 0e0e4adf3f806c503a158d3d5f96a2fa30103314 Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Tue, 15 Nov 2022 13:30:37 +0000 Subject: [PATCH] Use locale_io since atof is used --- kicad/cli/command_export_pcb_step.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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,