public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: terminology: zero character vs. null character
       [not found] ` <43e59cbc-4352-af0a-90f1-112b1ae5301a@gmail.com>
@ 2017-03-12 21:28   ` Gerald Pfeifer
  2017-03-13 18:15     ` Joseph Myers
  0 siblings, 1 reply; 5+ 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] 5+ messages in thread

* Re: terminology: zero character vs. null character
  2017-03-12 21:28   ` terminology: zero character vs. null character Gerald Pfeifer
@ 2017-03-13 18:15     ` Joseph Myers
  2017-03-13 22:02       ` Gerald Pfeifer
  0 siblings, 1 reply; 5+ 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] 5+ messages in thread

* Re: terminology: zero character vs. null character
  2017-03-13 18:15     ` Joseph Myers
@ 2017-03-13 22:02       ` Gerald Pfeifer
  2017-03-13 22:34         ` Bruce Korb
  0 siblings, 1 reply; 5+ messages in thread
From: Gerald Pfeifer @ 2017-03-13 22:02 UTC (permalink / raw)
  To: Joseph Myers
  Cc: Manuel López-Ibáñez, Roland Illig, gcc-patches

On Mon, 13 Mar 2017, Joseph Myers 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.
>> Joseph, do you also agree (and with the patch below to document this)?
> Yes.

Cool; I committed the change to codingconventions.html .

Roland (and Manuel), that means you can now proceed according to
Manuel's recommendation.

Gerald

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

* Re: terminology: zero character vs. null character
  2017-03-13 22:02       ` Gerald Pfeifer
@ 2017-03-13 22:34         ` Bruce Korb
  2017-03-14 16:58           ` Martin Sebor
  0 siblings, 1 reply; 5+ messages in thread
From: Bruce Korb @ 2017-03-13 22:34 UTC (permalink / raw)
  To: Gerald Pfeifer, Joseph Myers
  Cc: Manuel López-Ibáñez, Roland Illig, gcc-patches

On 03/13/17 15:02, Gerald Pfeifer wrote:
> On Mon, 13 Mar 2017, Joseph Myers 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.
>>> Joseph, do you also agree (and with the patch below to document this)?
>> Yes.
> 
> Cool; I committed the change to codingconventions.html .

I'm likely late to the party, but what's wrong with the traditional
"NUL"?  Googling "NUL vs. NULL" yields up:

NULL is a macro defined in <stddef.h> for the null pointer. NUL is the
name of the first character in the ASCII character set. It corresponds
to a zero value. There s no standard macro NUL in C, but some people
like to define it.

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

* Re: terminology: zero character vs. null character
  2017-03-13 22:34         ` Bruce Korb
@ 2017-03-14 16:58           ` Martin Sebor
  0 siblings, 0 replies; 5+ messages in thread
From: Martin Sebor @ 2017-03-14 16:58 UTC (permalink / raw)
  To: Bruce Korb, Gerald Pfeifer, Joseph Myers
  Cc: Manuel López-Ibáñez, Roland Illig, gcc-patches

On 03/13/2017 04:34 PM, Bruce Korb wrote:
> On 03/13/17 15:02, Gerald Pfeifer wrote:
>> On Mon, 13 Mar 2017, Joseph Myers 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.
>>>> Joseph, do you also agree (and with the patch below to document this)?
>>> Yes.
>>
>> Cool; I committed the change to codingconventions.html .
>
> I'm likely late to the party, but what's wrong with the traditional
> "NUL"?  Googling "NUL vs. NULL" yields up:
>
> NULL is a macro defined in <stddef.h> for the null pointer. NUL is the
> name of the first character in the ASCII character set. It corresponds
> to a zero value. There s no standard macro NUL in C, but some people
> like to define it.

Personally, I think the term "NUL character" is fine.  It's
the abbreviation for the null character in both ASCII and EBCDIC,
and it's used widely by POSIX, and interchangeably with the "null
character."  The C and C++ standards use the term "null character"
exclusively, so if the GCC documentation should adopt one of them
for consistency, it makes sense to go with "null."

Martin

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

end of thread, other threads:[~2017-03-14 16:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <24d86a2d-02c2-7774-7876-73b7825c7811@gmx.de>
     [not found] ` <43e59cbc-4352-af0a-90f1-112b1ae5301a@gmail.com>
2017-03-12 21:28   ` terminology: zero character vs. null character Gerald Pfeifer
2017-03-13 18:15     ` Joseph Myers
2017-03-13 22:02       ` Gerald Pfeifer
2017-03-13 22:34         ` Bruce Korb
2017-03-14 16:58           ` Martin Sebor

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