This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Null characters in files
- To: Neil Booth <NeilB at earthling dot net>
- Subject: Re: Null characters in files
- From: Jason Merrill <jason at cygnus dot com>
- Date: 03 Apr 2000 10:37:00 -0700
- Cc: gcc-patches at gcc dot gnu dot org, Zack Weinberg <zack at wolery dot cumb dot org>
- References: <E12c8To-000815-00@monkey.rosenet.ne.jp>
>>>>> Neil Booth <NeilB@earthling.net> writes:
> Since my patch of about a week ago which removed the special meaning
> of null characters from read_and_prescan, null characters no longer
> mangle, but get passed straight through to the lexer.
> With this patch null characters are handled as follows:-
> o Embedded in a comment, they go unnoticed
> o Embedded in a string, a warning is issued and the null ignored
No. Embedded in a string, they should be passed through. It's perfectly
reasonable to have an embedded null in a string.
Jason