[gfortran,patch] Ignore byte order mark at start of file
Brooks Moses
bmoses@stanford.edu
Wed Apr 25 23:27:00 GMT 2007
On Wed, Apr 25, 2007 at 11:32:10PM +0200, FX Coudert wrote:
> > I can't seem to figure out why it works, but it seems to. As such,
> > unless there's some particular reason to expect that it will always
> > work correctly (and that includes not doing bizarre things with non-
> > ASCII characters in string literals, for instance), then we should
> > probably issue a warning if a UTF-16 BOM is found.
>
> This point is unrelated, in my view, to the BOM issue. (At least
> because I have easily found how to fix the BOM thing, while I have no
> idea how the encoding is handled, if it is at all.)
Unrelated, save that a BOM is how one knows the file is UTF. Though
the warning can certainly be a separate patch some other day. :)
> > Does the testsuite harness know what to do with a "dg-do compile"
> > that's in UTF-16 format?
>
> Yes: all these testcases are run and checked. I don't know how it
> does it :)
I think it defaults to dg-do compile unless it finds something that says
something else. Does changing it to dg-do run cause them to run?
- Brooks
More information about the Gcc-patches
mailing list