OS version: Windows 98 & Windows XP
gcc version: 3.4.2
mingw version: 4.1.0
attached is code that optimizes EPS files for plotting
and one test file that demonstrates the bug. after
running the program, the resulting output file is
essentially a re-ordered version of the input file.
the problem is it is missing one byte. i have tracked
this down and suspect it to be a fault in the fseek()
command, positioning the input file pointer one byte
further then it is commanded to. the program works
properly using the borlandc compiler and the microsoft
compiler. it is strange because it seems to work right
for the rest of the file, only mistaking one time on
Compile it by:
Run it by:
a.exe test.eps out.eps
Check Line 11841 of the generated file out.eps, it
149.57474 1894.99805 m
this is incorrect, the correct answer is:
2149.57474 1894.99805 m
it has missed the first "2".
Log in to post a comment.