Use locale_io since atof is used

This commit is contained in:
Mark Roszko 2022-11-15 13:30:37 +00:00
parent 9724f6e736
commit 0e0e4adf3f
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include "jobs/job_export_pcb_step.h" #include "jobs/job_export_pcb_step.h"
#include <kiface_base.h> #include <kiface_base.h>
#include <regex> #include <regex>
#include <locale_io.h>
#include <macros.h> #include <macros.h>
@ -102,6 +103,9 @@ int CLI::EXPORT_PCB_STEP_COMMAND::Perform( KIWAY& aKiway )
step->m_boardOnly = m_argParser.get<bool>( ARG_BOARD_ONLY ); step->m_boardOnly = m_argParser.get<bool>( ARG_BOARD_ONLY );
wxString userOrigin = FROM_UTF8( m_argParser.get<std::string>( ARG_USER_ORIGIN ).c_str() ); wxString userOrigin = FROM_UTF8( m_argParser.get<std::string>( ARG_USER_ORIGIN ).c_str() );
LOCALE_IO dummy; // Switch to "C" locale
if( !userOrigin.IsEmpty() ) if( !userOrigin.IsEmpty() )
{ {
std::regex re_pattern( REGEX_QUANTITY REGEX_DELIMITER REGEX_QUANTITY REGEX_UNIT, std::regex re_pattern( REGEX_QUANTITY REGEX_DELIMITER REGEX_QUANTITY REGEX_UNIT,