More redundant LOCALE_IO

This commit is contained in:
Mark Roszko 2025-08-27 20:11:26 -04:00
parent 747106ea37
commit 9bc463606a
8 changed files with 0 additions and 24 deletions

View File

@ -123,10 +123,6 @@ bool ERC_REPORT::WriteTextReport( const wxString& aFullFileName )
bool ERC_REPORT::WriteJsonReport( const wxString& aFullFileName )
{
// We need the global LOCALE_IO here in order to
// write the report in the c-locale.
LOCALE_IO locale;
std::ofstream jsonFileStream( aFullFileName.fn_str() );
UNITS_PROVIDER unitsProvider( pcbIUScale, m_reportUnits );

View File

@ -26,7 +26,6 @@
#include <wx/crt.h>
#include <macros.h>
#include <locale_io.h>
#define ARG_USE_CONTOURS "--use-contours"
#define ARG_OUTPUT_UNITS "--output-units"
@ -191,7 +190,5 @@ int CLI::PCB_EXPORT_DXF_COMMAND::doPerform( KIWAY& aKiway )
_( "The new behavior will match --mode-multi" ) );
}
LOCALE_IO dummy; // Switch to "C" locale
return aKiway.ProcessJob( KIWAY::FACE_PCB, dxfJob.get() );
}

View File

@ -25,8 +25,6 @@
#include <string_utils.h>
#include <wx/crt.h>
#include <locale_io.h>
CLI::PCB_EXPORT_GENCAD_COMMAND::PCB_EXPORT_GENCAD_COMMAND() :
PCB_EXPORT_BASE_COMMAND( "gencad", false, true )
@ -83,6 +81,5 @@ int CLI::PCB_EXPORT_GENCAD_COMMAND::doPerform( KIWAY& aKiway )
return EXIT_CODES::ERR_INVALID_INPUT_FILE;
}
LOCALE_IO dummy; // Switch to "C" locale
return aKiway.ProcessJob( KIWAY::FACE_PCB, gencadJob.get() );
}

View File

@ -24,8 +24,6 @@
#include <kiface_base.h>
#include <string_utils.h>
#include <locale_io.h>
#define ARG_USE_BOARD_PLOT_PARAMS "--board-plot-params"
@ -55,6 +53,5 @@ int CLI::PCB_EXPORT_GERBERS_COMMAND::doPerform( KIWAY& aKiway )
gerberJob->m_argCommonLayers = From_UTF8( m_argParser.get<std::string>( ARG_COMMON_LAYERS ).c_str() );
gerberJob->m_useBoardPlotParams = m_argParser.get<bool>( ARG_USE_BOARD_PLOT_PARAMS );
LOCALE_IO dummy;
return aKiway.ProcessJob( KIWAY::FACE_PCB, gerberJob.get() );
}

View File

@ -25,8 +25,6 @@
#include <string_utils.h>
#include <wx/crt.h>
#include <locale_io.h>
#define ARG_MODE_SEPARATE "--mode-separate"
#define ARG_MODE_MULTIPAGE "--mode-multipage"
#define ARG_MODE_SINGLE "--mode-single"
@ -197,6 +195,5 @@ int CLI::PCB_EXPORT_PDF_COMMAND::doPerform( KIWAY& aKiway )
else if( argModeSingle )
pdfJob->m_pdfGenMode = JOB_EXPORT_PCB_PDF::GEN_MODE::ALL_LAYERS_ONE_FILE;
LOCALE_IO dummy; // Switch to "C" locale
return aKiway.ProcessJob( KIWAY::FACE_PCB, pdfJob.get() );
}

View File

@ -26,8 +26,6 @@
#include <string_utils.h>
#include <wx/crt.h>
#include <locale_io.h>
#define ARG_MODE_SINGLE "--mode-single"
#define ARG_MODE_MULTI "--mode-multi"
#define ARG_TRACK_WIDTH_CORRECTION "--track-width-correction"
@ -195,6 +193,5 @@ int CLI::PCB_EXPORT_PS_COMMAND::doPerform( KIWAY& aKiway )
psJob->m_YScaleAdjust = m_argParser.get<double>( ARG_Y_SCALE_FACTOR );
psJob->m_forceA4 = m_argParser.get<bool>( ARG_FORCE_A4 );
LOCALE_IO dummy; // Switch to "C" locale
return aKiway.ProcessJob( KIWAY::FACE_PCB, psJob.get() );
}

View File

@ -39,7 +39,6 @@
#include <reporter.h>
#include <wildcards_and_files_ext.h>
#include <layer_ids.h>
#include <locale_io.h>
#include <bitmaps.h>
#include <dialog_gendrill.h>
#include <string_utils.h>
@ -1244,7 +1243,6 @@ void DIALOG_PLOT::Plot( wxCommandEvent& event )
// Save the current plot options in the board
m_editFrame->SetPlotSettings( m_plotOpts );
LOCALE_IO dummy; // Ensure the "C3 locale is used by the plotter
PCB_PLOTTER pcbPlotter( m_editFrame->GetBoard(), &reporter, m_plotOpts );
LSEQ layersToPlot = m_plotOpts.GetLayerSelection().UIOrder();

View File

@ -120,9 +120,6 @@ bool DRC_REPORT::WriteTextReport( const wxString& aFullFileName )
bool DRC_REPORT::WriteJsonReport( const wxString& aFullFileName )
{
// We need the global LOCALE_IO here in order to
// write the report in the c-locale.
LOCALE_IO locale;
std::ofstream jsonFileStream( aFullFileName.fn_str() );
UNITS_PROVIDER unitsProvider( pcbIUScale, m_reportUnits );