fix the filetype problem if set in spinit

This commit is contained in:
dwarning 2007-12-15 16:29:50 +00:00
parent 91922d1e04
commit 7f157c76a2
3 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2007-12-14 Holger Vogt
* src/frontend/runcoms.c, runcoms2.c: fix the filetype problem if set in spinit
2007-12-15 Steven Borley 2007-12-15 Steven Borley
* Added automake warning and output verbosity to autogen.sh * Added automake warning and output verbosity to autogen.sh
* src/frontend/spiceif.c: Avoid invalid lvalue assignment errors when * src/frontend/spiceif.c: Avoid invalid lvalue assignment errors when

View File

@ -176,9 +176,9 @@ dosim(char *what, wordlist *wl)
} }
if (cp_getvar("filetype", VT_STRING, buf)) { if (cp_getvar("filetype", VT_STRING, buf)) {
if (eq(buf, "binary")) if (eq(buf, "binary") || eq(buf, "{binary}"))
ascii = FALSE; ascii = FALSE;
else if (eq(buf, "ascii")) else if (eq(buf, "ascii") || eq(buf, "{ascii}"))
ascii = TRUE; ascii = TRUE;
else else
fprintf(cp_err, fprintf(cp_err,

View File

@ -82,9 +82,9 @@ com_resume(wordlist *wl)
dofile = TRUE; dofile = TRUE;
if (cp_getvar("filetype", VT_STRING, buf)) { if (cp_getvar("filetype", VT_STRING, buf)) {
if (eq(buf, "binary")) if (eq(buf, "binary") || eq(buf, "{binary}"))
ascii = FALSE; ascii = FALSE;
else if (eq(buf, "ascii")) else if (eq(buf, "ascii") || eq(buf, "{ascii}"))
ascii = TRUE; ascii = TRUE;
else else
fprintf(cp_err, fprintf(cp_err,