public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* terminology: zero character vs. null character
@ 2017-03-06 21:16 Roland Illig
  2017-03-10  8:06 ` Manuel López-Ibáñez
  0 siblings, 1 reply; 4+ messages in thread
From: Roland Illig @ 2017-03-06 21:16 UTC (permalink / raw)
  To: gcc

Hi,

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.

Regards,
Roland

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: terminology: zero character vs. null character
  2017-03-06 21:16 terminology: zero character vs. null character Roland Illig
@ 2017-03-10  8:06 ` Manuel López-Ibáñez
  2017-03-12 21:28   ` Gerald Pfeifer
  0 siblings, 1 reply; 4+ messages in thread
From: Manuel López-Ibáñez @ 2017-03-10  8:06 UTC (permalink / raw)
  To: Roland Illig, GCC Development

On 06/03/17 21:15, Roland Illig wrote:
> Hi,
>
> 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:

https://gcc.gnu.org/wiki/GettingStarted#Basics:_Contributing_to_GCC_in_10_easy_steps

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.

Cheers,

	Manuel.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: terminology: zero character vs. null character
  2017-03-10  8:06 ` Manuel López-Ibáñez
@ 2017-03-12 21:28   ` Gerald Pfeifer
  2017-03-13 18:15     ` Joseph Myers
  0 siblings, 1 reply; 4+ messages in thread
From: Gerald Pfeifer @ 2017-03-12 21:28 UTC (permalink / raw)
  To: Manuel López-Ibáñez, Joseph S. Myers
  Cc: Roland Illig, gcc, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]

On Fri, 10 Mar 2017, Manuel López-Ibáñez 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.
> 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".

Agreed.

Joseph, do you also agree (and with the patch below to document this)?

Gerald

Index: codingconventions.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/codingconventions.html,v
retrieving revision 1.79
diff -u -r1.79 codingconventions.html
--- codingconventions.html	1 Mar 2017 12:53:57 -0000	1.79
+++ codingconventions.html	12 Mar 2017 21:26:56 -0000
@@ -439,6 +439,11 @@
     <td></td>
   </tr>
   <tr>
+    <td>"null character"</td>
+    <td>"zero character"</td>
+    <td></td>
+  </tr>
+  <tr>
     <td>"Objective-C"</td>
     <td>"Objective C"</td>
   </tr>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: terminology: zero character vs. null character
  2017-03-12 21:28   ` Gerald Pfeifer
@ 2017-03-13 18:15     ` Joseph Myers
  0 siblings, 0 replies; 4+ messages in thread
From: Joseph Myers @ 2017-03-13 18:15 UTC (permalink / raw)
  To: Gerald Pfeifer
  Cc: Manuel López-Ibáñez, Roland Illig, gcc, gcc-patches

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

On Sun, 12 Mar 2017, Gerald Pfeifer wrote:

> On Fri, 10 Mar 2017, Manuel López-Ibáñez 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.
> > 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".
> 
> Agreed.
> 
> Joseph, do you also agree (and with the patch below to document this)?

Yes.

-- 
Joseph S. Myers
joseph@codesourcery.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-13 18:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-06 21:16 terminology: zero character vs. null character Roland Illig
2017-03-10  8:06 ` Manuel López-Ibáñez
2017-03-12 21:28   ` Gerald Pfeifer
2017-03-13 18:15     ` Joseph Myers

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).