--- imach/src/imach.c 2021/02/11 19:50:15 1.303 +++ imach/src/imach.c 2021/02/12 11:34:20 1.304 @@ -1,6 +1,9 @@ -/* $Id: imach.c,v 1.303 2021/02/11 19:50:15 brouard Exp $ +/* $Id: imach.c,v 1.304 2021/02/12 11:34:20 brouard Exp $ $State: Exp $ $Log: imach.c,v $ + Revision 1.304 2021/02/12 11:34:20 brouard + * imach.c (Module): The use of a Windows BOM (huge) file is now an error + Revision 1.303 2021/02/11 19:50:15 brouard * (Module): imach.c Someone entered 'results:' instead of 'result:'. Now it is an error which is printed. @@ -1129,12 +1132,12 @@ typedef struct { #define ODIRSEPARATOR '\\' #endif -/* $Id: imach.c,v 1.303 2021/02/11 19:50:15 brouard Exp $ */ +/* $Id: imach.c,v 1.304 2021/02/12 11:34:20 brouard Exp $ */ /* $State: Exp $ */ #include "version.h" char version[]=__IMACH_VERSION__; char copyright[]="May 2019,INED-EUROREVES-Institut de longevite-Japan Society for the Promotion of Science (Grant-in-Aid for Scientific Research 25293121), Intel Software 2015-2020"; -char fullversion[]="$Revision: 1.303 $ $Date: 2021/02/11 19:50:15 $"; +char fullversion[]="$Revision: 1.304 $ $Date: 2021/02/12 11:34:20 $"; char strstart[80]; char optionfilext[10], optionfilefiname[FILENAMELENGTH]; int erreur=0, nberr=0, nbwarn=0; /* Error number, number of errors number of warnings */ @@ -9255,16 +9258,16 @@ int readdata(char datafile[], int firsto else if( line[0] == (char)0xFF && line[1] == (char)0xFE) { noffset=noffset+2; - printf("# Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile);fflush(stdout); - fprintf(ficlog,"# Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile); + printf("# Error Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile);fflush(stdout); + fprintf(ficlog,"# Error Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile); fflush(ficlog); return 1; } else if( line[0] == 0 && line[1] == 0) { if( line[2] == (char)0xFE && line[3] == (char)0xFF){ noffset=noffset+4; - printf("# Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile);fflush(stdout); - fprintf(ficlog,"# Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile); + printf("# Error Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile);fflush(stdout); + fprintf(ficlog,"# Error Data file '%s' is a huge UTF16BE BOM file, please convert to UTF8 or ascii file (for example with dos2unix) and rerun.\n",datafile); fflush(ficlog); return 1; } } else{