Use std::locale::classic() globally
This is a better alternative when imbuing streams
This commit is contained in:
parent
5d352d2373
commit
283d176cdc
|
@ -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 )
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue