The problem arose since I have quite a few old Pascal programs on a machine that I prefer not to use. The one in questions makes checks on HTML files within a directory that the links exist. Hence it opens lots of HTML files which have names of different length. Works fine when reset ignores trailing spaces. Trailing spaces are ignored on Unix command lines....
I could recode the programs in Ada 95, but recompiling with gpc seemed a good option.
On 29 Dec 2005, at 16:41, Frank Heckenbach wrote:
Brian, did you find this problem in an actual program, or just by trying some corner-cases?
Being an old hand at ISO 7185, I like to stick to that.
If you take the view that sticking to ISO 7185 is not required, then obviously, Adriaan below is correct...
On 29 Dec 2005, at 08:19, Adriaan van Os wrote:
This is absurd.
- a filesystem may allow spaces in file- and pathnames
- reset(t, 'myfile ') instead of reset(t, 'myfile') when the
filename is 'myfile' is simply an application error
- the procedure MyReset doesn't remove trailing spaces, think of
'my file'
Regards,
Adriaan van Os
Brian.