Page 1 of 1

Inconsistent line termination between Linux and DOS

Posted: Tue Jan 12, 2016 9:02 pm
by legodwin
I have a CAM program that refuses to read dxf files created by QCad on Linux. I was able to correct the issue by running "dos2unix --u2d" on the Linux-created file to change the line endings from <LF> to <CR><LF> for DOS. Since DXF was originally created in the DOS world, I guess that the "correct" thing to do would be to have <CR><LF> line termination for all operating systems.

It looks like the "\n" items in dl_writer_ascii.cpp would simply need to be changed to "\r\n" to make the DXF file output identical for all.

Thanks