This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/23751] cpp -P emits two newlines
- From: "johann dot glaser at gmx dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Sep 2005 15:59:20 -0000
- Subject: [Bug preprocessor/23751] cpp -P emits two newlines
- References: <20050906154603.23751.johann.glaser@gmx.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From johann dot glaser at gmx dot at 2005-09-06 15:59 -------
Sure, but without -P no additional newlines are printed, so these two are
clearly "to much".
Since cpp is often used for other things than C preprocessing, newlines are
annoying or even kill tools relying on it.
I found this bug because we have a script sending emails which uses cpp to
preprocess the mail content. Since the first few lines of the mail contain the
header, no additional newlines are acceptable, because /usr/sbin/sendmail will
interpret these as header-body-delimiter.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23751