[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gEDA: [pzn@terra.com.br: Bug#169746: geda-gnetlist: protelII backend uses LF, but protel requires CR+LF]



Hi Hamish,


[snip]
>  if I use:
>    unix2dos test.net
>  then protel understand the netlist without any problem. I think it
>would be good to generate the output file with DOS line terminators
>(CR+LF) in protelII backend, as protel does not understand LF only.

	The fix for this is to put the following in a gnetlistrc file:

(use-modules (ice-9 optargs))

(define* (newline #&optional port)
 (if (bound? port)
   (begin (display #\cr port) (display #\nl port))
   (begin (display #\cr) (display #\nl))))

	This overrides the scheme newline procedure and outputs the
appropriate character pair.  If anybody has a better idea/implementation,
by all means, please suggest it.  I'm not yet sure how I will put this
into CVS.

								-Ales