Fix an issue in LOCALE_IO class, used to switch to/back locale "C" when reading/writing files: the back to locale was broken, and created issues in countries using the ',' as fp separator, especially when the non default language was used.

It was reported in many bugs.
This commit is contained in:
jean-pierre charras
2016-05-10 09:11:09 +02:00
parent bfeb61abef
commit ec096cc1d2
6 changed files with 51 additions and 89 deletions
+2 -2
View File
@@ -151,7 +151,8 @@ bool DIALOG_PLOT_SCHEMATIC::plotOneSheetPS( const wxString& aFileName,
return false;
}
SetLocaleTo_C_standard();
LOCALE_IO toggle; // Switch the locale to standard C
plotter->StartPlot();
if( aPlotFrameRef )
@@ -168,7 +169,6 @@ bool DIALOG_PLOT_SCHEMATIC::plotOneSheetPS( const wxString& aFileName,
plotter->EndPlot();
delete plotter;
SetLocaleTo_Default();
return true;
}