I wonder if it is possible to come to a consensus about newline policy in the gtp before we release 3.0.0.
I wonder that too.
My suggestion is: For writing data, use the line ending convention of the platform your software runs on. For reading data, make sure your software can read either convention.
This is not difficult to do on either platform. Other than DOS and UNIX, are their other line ending conventions in common use? What do MAC's do?
Don
From: Daniel Bump bump@match.stanford.edu Cc: gnugo@gnu.org, gtp@lists.lysator.liu.se References: 3.0.3.32.20010818210823.00fb5b48@mail.codebus.com 3.0.3.32.20010818210823.00fb5b48@mail.codebus.com 3.0.3.32.20010819082308.00f49f40@mail.codebus.com 200108191549.IAA31169@match.Stanford.EDU kmelq8vvw0.fsf@insignia.com Sender: gtp-admin@lists.lysator.liu.se Errors-To: gtp-admin@lists.lysator.liu.se X-BeenThere: gtp@lists.lysator.liu.se X-Mailman-Version: 2.0rc1 Precedence: bulk List-Help: mailto:gtp-request@lists.lysator.liu.se?subject=help List-Post: mailto:gtp@lists.lysator.liu.se List-Subscribe: http://lists.lysator.liu.se/mailman/listinfo/gtp, mailto:gtp-request@lists.lysator.liu.se?subject=subscribe List-Id: Discussion about the computer-go protocol GTP. <gtp.lists.lysator.liu.se> List-Unsubscribe: http://lists.lysator.liu.se/mailman/listinfo/gtp, mailto:gtp-request@lists.lysator.liu.se?subject=unsubscribe List-Archive: http://lists.lysator.liu.se/pipermail/gtp/ Date: Sun, 19 Aug 2001 10:01:36 -0700 Content-Type: text Content-Length: 826
David Denholm wrote:
We can simulate this problem on Linux by replacing all occurrences of \n by \r\n in gtp.c. I just did that and found that regress.sh is broke but twogtp is not.
That wouldn't help since on windows that would (may) give CRCRLF
The purpose of that change to gtp.c wasn't to fix anything but to break it. I wanted to see what the problem was. So I hacked in carriage returns to gtp.c, in order to see where they should be stripped in regress.awk.
And on mac, \n is CR
\012 is probably safest if you really mean a LF character
I wonder if it is possible to come to a consensus about newline policy in the gtp before we release 3.0.0.
Dan
_______________________________________________ gtp mailing list gtp@lists.lysator.liu.se http://lists.lysator.liu.se/mailman/listinfo/gtp