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.