public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tromey at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug preprocessor/33415] Can't compile .cpp file with UTF-8 BOM.
Date: Mon, 21 Apr 2008 14:03:00 -0000	[thread overview]
Message-ID: <20080421140253.27157.qmail@sourceware.org> (raw)
In-Reply-To: <bug-33415-15093@http.gcc.gnu.org/bugzilla/>



------- Comment #6 from tromey at gcc dot gnu dot org  2008-04-21 14:02 -------
Subject: Bug 33415

Author: tromey
Date: Mon Apr 21 14:02:00 2008
New Revision: 134507

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134507
Log:
libcpp
        PR libcpp/33415:
        * charset.c (_cpp_convert_input): Add buffer_start argument.
        Ignore UTF-8 BOM if seen.
        * internal.h (_cpp_convert_input): Add argument.
        * files.c (struct _cpp_file) <buffer_start>: New field.
        (destroy_cpp_file): Free buffer_start, not buffer.
        (_cpp_pop_file_buffer): Likewise.
        (read_file_guts): Update.
gcc/testsuite
        PR libcpp/33415:
        * gcc.dg/cpp/pr33415.c: New file.

Added:
    trunk/gcc/testsuite/gcc.dg/cpp/pr33415.c
Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/libcpp/ChangeLog
    trunk/libcpp/charset.c
    trunk/libcpp/files.c
    trunk/libcpp/internal.h


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33415


  parent reply	other threads:[~2008-04-21 14:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-13 10:04 [Bug c++/33415] New: " huzheng_001 at 163 dot com
2007-09-14  4:12 ` [Bug preprocessor/33415] " bangerth at dealii dot org
2007-09-14  9:28 ` pinskia at gcc dot gnu dot org
2008-04-16 20:38 ` tromey at gcc dot gnu dot org
2008-04-16 21:30 ` tromey at gcc dot gnu dot org
2008-04-21 14:03 ` tromey at gcc dot gnu dot org
2008-04-21 14:03 ` tromey at gcc dot gnu dot org [this message]
2009-06-14 23:03 ` jsm28 at gcc dot gnu dot org
     [not found] <bug-33415-4@http.gcc.gnu.org/bugzilla/>
2013-03-25  5:03 ` chalakella at yahoo dot com
2013-03-25 13:50 ` bangerth at gmail dot com
2013-03-25 14:15 ` redi at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080421140253.27157.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).