kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #05442
Text file open modes
-
To:
KiCad Developers <kicad-developers@xxxxxxxxxxxxxxxxxxx>
-
From:
Dick Hollenbeck <dick@xxxxxxxxxxx>
-
Date:
Wed, 15 Sep 2010 10:37:20 -0500
-
In-reply-to:
<20100915101503.GA18585@openss7.org>
-
User-agent:
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) 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.
>
Long term
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.
Dick
Follow ups