Use std::locale::classic() globally

This is a better alternative when imbuing streams
This commit is contained in:
Seth Hillbrand 2021-02-26 17:21:55 -08:00
parent 5d352d2373
commit 283d176cdc
3 changed files with 3 additions and 3 deletions

View File

@ -103,7 +103,7 @@ bool S3D::WriteVRML( const char* filename, bool overwrite, SGNODE* aTopNode,
return false;
}
op.imbue( std::locale( "C" ) );
op.imbue( std::locale::classic() );
op << "#VRML V2.0 utf8\n";
if( renameNodes )

View File

@ -142,7 +142,7 @@ double ALTIUM_PARSER::PropertiesReadDouble(
// Locale independent str -> double conversation
std::istringstream istr( (const char*) value->second.mb_str() );
istr.imbue( std::locale( "C" ) );
istr.imbue( std::locale::classic() );
double doubleValue;
istr >> doubleValue;

View File

@ -1686,7 +1686,7 @@ bool PCB_EDIT_FRAME::ExportVRML_File( const wxString& aFullFileName, double aMMt
throw( std::runtime_error( ostr.str().c_str() ) );
}
output_file.imbue( std::locale( "C" ) );
output_file.imbue( std::locale::classic() );
// Begin with the usual VRML boilerplate
wxString fn = aFullFileName;