Fix missing switch to "C" locale before plotting board files.

This commit is contained in:
jean-pierre charras
2025-01-04 17:28:49 +01:00
parent fcf546516a
commit 7f114d737e
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -1325,6 +1325,7 @@ 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();
+1
View File
@@ -916,6 +916,7 @@ int PCBNEW_JOBS_HANDLER::JobExportPdf( JOB* aJob )
return CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT;
}
LOCALE_IO dummy;
if( !pcbPlotter.Plot( aPdfJob->GetFullOutputPath(), aPdfJob->m_printMaskLayer,
aPdfJob->m_printMaskLayersToIncludeOnAllLayers, false ) )
{