Browse Source

Use std::locale::classic() globally

This is a better alternative when imbuing streams
6.0.7
Seth Hillbrand 5 years ago
parent
commit
283d176cdc
  1. 2
      3d-viewer/3d_cache/sg/ifsg_api.cpp
  2. 2
      common/plugins/altium/altium_parser.cpp
  3. 2
      pcbnew/exporters/export_vrml.cpp

2
3d-viewer/3d_cache/sg/ifsg_api.cpp

@ -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 )

2
common/plugins/altium/altium_parser.cpp

@ -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;

2
pcbnew/exporters/export_vrml.cpp

@ -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…
Cancel
Save