kicad-developers team mailing list archive
Mailing list archive
Text file open modes
KiCad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
Dick Hollenbeck <dick@xxxxxxxxxxx>
Wed, 15 Sep 2010 10:37:20 -0500
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:126.96.36.199) Gecko/20100826 Thunderbird/3.0.7
> The first problem, hanging on '\r' within macro definitions can
> be worked around by saving the gerber in UNIX format (\n only)
> instead of DOS format (\r\n). Then gerbview will not hang on
> '\r': because there will be none in the file.
gerbview, like any other kicad program, should probably be using
"rt" as the fopen() mode. Won't that make the fgets() code read in
lines of text without the \r in a platform independent way ?
No doubt gerbview needs a lot of work, and I'm not even sure what's
there is to be considered a good starting point. I've spent some time
on it, but have always had the feeling I was building on sand.