Tom Schneider a écrit:
Maurice:
Strange. doing the same on DJGPP (W98se DOS box) with gpc 20041218 based on gcc 3.2.3 behaves as expected.
Hmm. I don't understand why it would be an issue on a Sun!
Neither I. But we do such cross-check on a different system each time an user reports a bug, to try to see if it is truly a gpc bug, or some other problem due to peculiarities of the user's system (or gpc version).
All is done manually with suitable tools to binary visualize the true content of files, no shell scripts or functions which could be too intelligent (I have bash, no tcsh) and hide something "unimportant", for example no linefeed or ^Z (a DOS nicety on text files) added at the end.
The script demonstrated in three ways that the files had zero length.
Still please do the cross check. I have no Sun at hand do do it, and may be nobody in this list has exactly the same system. I know nothing on the inners of the Sun file system, whether it stores somewhere the fact that this is a binary or a text file, if the file length is obtained by looking truly to the file content, or to some information on the length stored somewhere outside of the file, etc. In DOS systems when running scandisk, you find sometimes an error message like "file length as reported by the system is different from the true file length"
Maurice