Mail Archives: djgpp-workers/2000/01/19/05:47:51
On Tue, 18 Jan 2000, Nate Eldredge wrote:
> > Thanks for your comments. Since you mention that foo.c.X is not a legal
> > DOS filename, there is another one to deal with -- currently a foo.c is
> > saved as foo.c.save. I've tentatively changed that to `foo.csaved'
> > instead, which looks ugly but at least workable.
>
> Mmm... and what do we do about foo.bar? foo.barsaved is truncated to
> foo.bar and overwrites the original file.
>
> foo.sav might be more reasonable.
I agree: IMHO foo.sav is better.
It would be even nicer if the code would test whether long file names
are supported, and if so, use the original .save extension appended to
the file name. A call to pathconf (with the _PC_NAME_MAX argument) is
all you need to check for long file names: if it returns 12, long
names aren't available (if they are, it will typically return 255).
- Raw text -