mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-23 14:57:23 +08:00
0029219: Application Framework - XML document is written with CRLF on Windows
The last symbol of a line is synchronized with external products. Also, XML ends by LF now. Modified: XML: XmlLDrivers_DocumentStorageDriver::Write() ends by LF BREP: BRepTools::Write(), Draw_VariableCommands::save() ends by LF STEP: StepSelect_WorkLibrary::WriteFile() ends by LF IGES: IGESSelect_WorkLibrary::WriteFile(), IGESControl_Writer::Write(), XSDRAWIGES::WriteShape() ends by LF VRML: VrmlAPI_Writer::write_v2() ends by LF 0029219: Application Framework - XML document is written with CRLF on Windows The last symbol of a line is synchronized with external products. Also, XML ends by LF now. Modified: XML: XmlLDrivers_DocumentStorageDriver::Write() ends by LF BREP: BRepTools::Write(), Draw_VariableCommands::save() ends by LF STEP: StepSelect_WorkLibrary::WriteFile() ends by LF IGES: IGESSelect_WorkLibrary::WriteFile(), IGESControl_Writer::Write(), XSDRAWIGES::WriteShape() ends by LF VRML: VrmlAPI_Writer::write_v2() ends by LF STL: RWStl::WriteAscii() ends by CR LF (to synchronize with Blender) 0029219: Application Framework - XML document is written with CRLF on Windows The last symbol of a line is synchronized with external products. Also, XML ends by LF now. Modified: XML: XmlLDrivers_DocumentStorageDriver::Write() ends by LF BREP: BRepTools::Write(), Draw_VariableCommands::save() ends by LF STEP: StepSelect_WorkLibrary::WriteFile() ends by LF IGES: IGESSelect_WorkLibrary::WriteFile(), IGESControl_Writer::Write(), XSDRAWIGES::WriteShape() ends by LF VRML: VrmlAPI_Writer::write_v2() ends by LF
This commit is contained in:
@@ -99,7 +99,7 @@ Standard_Boolean StepSelect_WorkLibrary::WriteFile
|
||||
if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
|
||||
|
||||
const Handle(OSD_FileSystem)& aFileSystem = OSD_FileSystem::DefaultFileSystem();
|
||||
std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out | std::ios::trunc);
|
||||
std::shared_ptr<std::ostream> aStream = aFileSystem->OpenOStream (ctx.FileName(), std::ios::out | std::ios::binary | std::ios::trunc);
|
||||
|
||||
if (aStream.get() == NULL) {
|
||||
ctx.CCheck(0)->AddFail("Step File could not be created");
|
||||
|
||||
Reference in New Issue
Block a user