[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling of \r

From: Paul Eggert
Subject: Re: Handling of \r
Date: Mon, 9 Sep 2019 12:10:16 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0

On 9/9/19 9:46 AM, Akim Demaille wrote:
I personally prefer treating a lone \r as a regular character, as it's more 
consistent with what my tools show me.  And I think it's a problem that GCC and 
Emacs disagree, so maybe the GCS should decide.

But in the case of Bison, WDYT today?

I vaguely recall thinking that since Bison is a preprocessor for C/C++, consistency with GCC was more important than consistency with other GNU tools.

The GCC tradition was because of Classic Mac OS, which used plain CR to terminate lines. Since Apple hasn't supported Classic Mac OS since 2002 (arund the time of my Bison patch you mentioned), this old tradition is now completely obsolete, and I'd support having Bison and GCC be consistent with everybody else now.

So how about this idea: Change Bison to be like most other GNU tools, and file a bug report with the GCC folks.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]