>
> Your file either contains a \000 character, or else it has a single line of
text that is longer than 8191 characters.
>
The longest line is less than 100 chars.
I wrote a quick program to check for null characters - there do not seem to be
any. ( code below )
It is definitely something about the file. If I create a new repository and
check this file into it, it is consider binary
Here's the null check code
int buflen = 1000000;
char * buf = (char * )malloc( buflen );
FILE * fp = fopen("unit_test.cpp","r");
if( ! fp ) {
printf("No file\n");
return 1;
}
int len = fread(buf,1,buflen,fp);
if( len > buflen - 10 ) {
printf("longer buf please\n");
return 1;
}
printf("File length %d\n",len);
bool found_null = false;
for( int k = 0; k < len; k++ ) {
if( buf[k] == '\0' ) {
printf("NULL character!\n");
found_null = true;
}
}
if( ! found_null ) {
printf( "OK no nulls found\n");
}
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users