MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0029219Open CASCADE[OCCT] OCCT:Application Frameworkpublic2017-10-12 14:532017-10-16 10:28
Reporterkgv 
Assigned Tokgv 
PrioritynormalSeverityminor 
StatusfeedbackResolutionopen 
PlatformOSOS Version
Product Version[OCCT] 7.2.0 
Target Version[OCCT] 7.3.0*Fixed in Version 
Summary0029219: Application Framework - XML document is written with CRLF on Windows
DescriptionIt seems that XML document has different EOL depending on the platform - CRLF on Windows and LF on other systems. Most likely, it is due to std::ofstream being opened in text mode instead of binary mode.

It would be useful saving XML files in consistent way across systems - e.g. using LF instead of CRLF on Windows (this would also reduce file size a little).
TagsNo tags attached.
Test case number
Attached Files

- Relationships
related to 0029218closedbugmaster Open CASCADE Application Framework - reading XML document calls LDOM parsing at least 3 times 

-  Notes
(0071511)
mpv (developer)
2017-10-16 10:04

Windows end-of-lines for text files is standard. XML is a text file. We cannot simply change it in OCCT.
(0071516)
kgv (developer)
2017-10-16 10:28

OK, the issue is not specific to XML export - BREP/STEP/IGES are also written with CRLF on Windows. However, behavior is still questionable:
- OCCT XML:    CRLF
- OCCT BREP:   CRLF
- OCCT STEP:   CRLF
- OCCT IGES:   CRLF
- OCCT VRML:   CRLF
- OCCT STL:    LF
- Blender X3D: CRLF
- Blender STL: CRLF
- Blender OBJ: LF
- Blender PLY: LF
- RPly:        LF

- Issue History
Date Modified Username Field Change
2017-10-12 14:53 kgv New Issue
2017-10-12 14:53 kgv Assigned To => mpv
2017-10-12 14:53 kgv Relationship added related to 0029218
2017-10-12 14:54 kgv Relationship added related to 0029216
2017-10-16 10:04 mpv Note Added: 0071511
2017-10-16 10:04 mpv Assigned To mpv => kgv
2017-10-16 10:04 mpv Status new => feedback
2017-10-16 10:28 kgv Note Added: 0071516


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker