[Bug fortran/56581] Segfault when reading source file which starts with a byte-order mark (-cpp works)

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 11 10:51:00 GMT 2013


Tobias Burnus <burnus at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
            Summary|seg fault                   |Segfault when reading
                   |                            |source file which starts
                   |                            |with a byte-order mark
                   |                            |(-cpp works)
     Ever Confirmed|1                           |0

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> 2013-03-11 10:51:32 UTC ---
For completeness, the first line of the attachment starts with (od -x):

0000000 bbef 43bf 2020 2020 2020 2020 2020 2020

EF BB BF  is the byte-order mark. (Followed by "C" and " ".)

It works if one uses "-cpp" as, seemingly, libcpp supports this. I think we
should consider supporting those BOM.

More information about the Gcc-bugs mailing list