From: Eric S. Raymond Date: Fri, 5 Nov 2004 00:20:22 +0000 (+0000) Subject: Don't generate UTF-8 into sst.doc. X-Git-Tag: 2.0~428 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=dcf0ba85bdb6ca44ba8739cf69acca346f5e6a1a;p=super-star-trek.git Don't generate UTF-8 into sst.doc. --- diff --git a/makefile b/makefile index cf29f5a..b2ae616 100644 --- a/makefile +++ b/makefile @@ -10,7 +10,7 @@ CFLAGS= -O -g -DSSTDOC='"/usr/share/doc/sst/sst.doc"' CFILES= sst.c finish.c reports.c setup.c moving.c battle.c events.c ai.c planets.c io.c OFILES= $(CFILES:.c=.o) HFILES=sst.h -DOCS = README sst-doc.xml sst.xml TODO +DOCS = README sst-doc.xml sst.xml sst-layer.xsl TODO # sst.doc and sst.6 are included so target system won't need xmlto SOURCES= $(CFILES) $(HFILES) $(DOCS) sst.doc sst.6 makehelp.py makefile sst.spec @@ -26,7 +26,7 @@ sst.6: sst.xml xmlto man sst.xml sst-doc.txt: sst-doc.xml - xmlto --skip-validation txt sst-doc.xml + xmlto -m sst-layer.xsl --skip-validation txt sst-doc.xml sst.doc: sst-doc.txt makehelp.py >sst.doc diff --git a/sst.c b/sst.c index 8d82100..c8ac356 100644 --- a/sst.c +++ b/sst.c @@ -480,7 +480,6 @@ int scan(void) { return IHEOL; } getline(line, sizeof(line)); - line[strlen(line)-1] = '\0'; linep = line; } // Skip leading white space