ntpq: cruft/doc

Gary E. Miller gem at rellim.com
Sun Oct 16 21:18:16 UTC 2016

Yo Hal!

On Sun, 16 Oct 2016 13:50:28 -0700
Hal Murray <hmurray at megapathdsl.net> wrote:

> gem at rellim.com said:
> > I was unaware of RFC 4180, and it mandates CRLF as line ending, not
> > the \n that I used.  I just pushed a fix to this.  Someone familiar
> > with RFC4180 should check the format is correct.   
> My guess is that's for network traffic rather than local files.  If
> you make a local file with your local line ending, the web stuff
> should do the conversion when it sends out a text file.

Too much work.  I can't tell when the file is written how it will
be used, and RFC 4180 makes no such exceptions.  I'm just gonna do
the RFC4180 version.  Been a long time since I have had sompatibilty
problems with CSVs.  Spreadsheet programs are pretty forgiving now.

> What does python do with \n?

Nothing, just another character.

> Another guess is that you shouldn't use \n but rather
> writeline.

Then I have to write line by line, very inefficient.  It was trivial to
just change \n to \r\n.

Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.ntpsec.org/pipermail/devel/attachments/20161016/a73aa304/attachment.bin>

More information about the devel mailing list