This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [libcpp] [PATCH] Handle DOS EOF character for DJGPP
DJ Delorie <dj@redhat.com> writes:
> I think we can safely rule this out. All the MS-based gcc platforms
> do not (or at least should not) add ^Z to text files, so no generator
> should produce such files.
Good to know.
>> files originally created on MS-DOS and bearing a
>> correctly-positioned ^Z,
>
> Just FYI, "correctly-positioned" is an invalid assumption. There is
> *no* rule that the ^Z can only appear at EOF; in fact in the original
> CP/M it almost always showed up elsewhere, as file sizes were always
> rounded up to sector sizes, and the ^Z was usually in the middle of
> the sector.
I understand this; I just don't think we can cater to that in GCC.
zw