------- Comment #2 from fxcoudert at gcc dot gnu dot org 2007-04-29 11:46 ------- Subject: Bug 31645
Author: fxcoudert Date: Sun Apr 29 11:45:57 2007 New Revision: 124274 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=124274 Log: PR fortran/31645 * scanner.c (load_file): Discard the byte order mark if one is found on the first non-preprocessor line of a file. * testsuite/gfortran.dg/bom_error.f90: New test. * testsuite/gfortran.dg/bom_include.f90: New test. * testsuite/gfortran.dg/bom_UTF16-LE.f90: New test. * testsuite/gfortran.dg/bom_UTF16-BE.f90: New test. * testsuite/gfortran.dg/bom_UTF-8.f90: New test. * testsuite/gfortran.dg/bom_UTF-32.f90: New test. * testsuite/gfortran.dg/bom_UTF-8.F90: New test. * testsuite/gfortran.dg/bom_include.inc: New file. Added: trunk/gcc/testsuite/gfortran.dg/bom_UTF-32.f90 trunk/gcc/testsuite/gfortran.dg/bom_UTF-8.F90 trunk/gcc/testsuite/gfortran.dg/bom_UTF-8.f90 trunk/gcc/testsuite/gfortran.dg/bom_UTF16-BE.f90 trunk/gcc/testsuite/gfortran.dg/bom_UTF16-LE.f90 trunk/gcc/testsuite/gfortran.dg/bom_error.f90 trunk/gcc/testsuite/gfortran.dg/bom_include.f90 trunk/gcc/testsuite/gfortran.dg/bom_include.inc Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/scanner.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31645