From 5af2b8eb7a29ce8d16e5922819da2857cb976e16 Mon Sep 17 00:00:00 2001 From: Stefan Frederik Date: Wed, 27 Jul 2022 11:06:54 +0200 Subject: [PATCH] fix read_dataset() for windows --- src/save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/save.c b/src/save.c index 127c6d59..09dbad0b 100644 --- a/src/save.c +++ b/src/save.c @@ -301,7 +301,7 @@ static int read_dataset(FILE *fd) while((ptr = fgets(line, sizeof(line), fd)) ) { /* after this line comes the binary blob made of nvars * npoints * sizeof(double) bytes */ - if(!strcmp(line, "Values:\n")) { /* this is an ASCII raw file. We don't handle this (yet) */ + if(!strcmp(line, "Values:\n") || !strcmp(line, "Values:\r\n")) { /* this is an ASCII raw file. We don't handle this (yet) */ free_rawfile(0); dbg(0, "read_dataset(): ASCII raw files can not be read. " "Use binary format in ngspice (set filetype=binary)\n");