[Bug preprocessor/23751] cpp -P emits two newlines
johann dot glaser at gmx dot at
gcc-bugzilla@gcc.gnu.org
Tue Sep 6 15:59:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list