This is the mail archive of the
mailing list for the GCC project.
Re: terminology: zero character vs. null character
- From: Manuel López-Ibáñez <lopezibanez at gmail dot com>
- To: Roland Illig <roland dot illig at gmx dot de>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Fri, 10 Mar 2017 08:05:59 +0000
- Subject: Re: terminology: zero character vs. null character
- Authentication-results: sourceware.org; auth=none
- References: <firstname.lastname@example.org>
On 06/03/17 21:15, Roland Illig wrote:
I am currently translating GCC into German. During that, I noticed that
in some places the term "zero character" means '\0'. The official term
though is "null character", as per the C standard.
Since it is confusing to have two different terms for the same concept,
the term "zero character" should be dropped entirely, both because it is
uncommon and because it can be confused with '0'.
Since this affects several places in the code, I think it's better to
start a small discussion first instead of writing several PRs.
I don't see anything explicit here: https://gcc.gnu.org/codingconventions.html
But I believe we follow standards' language and it should always be "null
character". Having a discussion first is likely to get nowhere. It sounds too
much like "maybe we should" (point 11: https://gcc.gnu.org/wiki/Community).
Please send a patch fixing it:
You can also send a patch changing https://gcc.gnu.org/codingconventions.html.
Once that is accepted, obvious changes to match the coding conventions are
usually considered pre-approved.