Re: man2hlp fails on SunOS 5.8

2002-08-20 Thread Andrew V. Samoilov
Pavel Roskin wrote: Hello! errno and ferror is not set. I rewrite this piece of code with read and even make circle with fgetc, but it does not cure. It looks like eof, but it is not true. The fix is in CVS. Some operating systems think it's Ok to return from fwrite() before

Re: man2hlp fails on SunOS 5.8

2002-08-20 Thread Pavel Roskin
Hello! Problem is in fread. This one stops reading, but does not report about problems. Now situation is even worse. man2hlp produces corrupted help file and report success. My guess is that ftell(stdout) returns something insane. The fixed version has been committed. It doesn't use stdout

Re: man2hlp fails on SunOS 5.8

2002-08-20 Thread Andrew V. Samoilov
Pavel Roskin wrote: Hello! Problem is in fread. This one stops reading, but does not report about problems. Now situation is even worse. man2hlp produces corrupted help file and report success. My guess is that ftell(stdout) returns something insane. The fixed version has been

man2hlp fails on SunOS 5.8

2002-08-16 Thread Andrew V. Samoilov
Hello! fread fails to read large option of data here: if (fread (Topics, 1, file_end, fout) != file_end) { perror (output); return 1; } errno and ferror is not set. I rewrite this piece of code with read and even make circle with fgetc, but it does not cure.

Re: man2hlp fails on SunOS 5.8

2002-08-16 Thread Pavel Roskin
Hello! errno and ferror is not set. I rewrite this piece of code with read and even make circle with fgetc, but it does not cure. It looks like eof, but it is not true. The fix is in CVS. Some operating systems think it's Ok to return from fwrite() before everything is written if the block