Inconsistent line termination between Linux and DOS

If you are having problems with dxflib, post here. Please report bugs here.

Moderator: andrew

Post Reply
Newbie Member
Posts: 9
Joined: Mon Jun 30, 2008 8:43 pm

Inconsistent line termination between Linux and DOS

Post by legodwin » Tue Jan 12, 2016 9:02 pm

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.

Lester Godwin

Post Reply

Return to “dxflib Troubleshooting and Problems”