[pcre-dev] [Bug 2513] Assumes file ends with a line break

Página Principal
Apagar esta mensagem
Autor: admin
Data:  
Para: pcre-dev
Assunto: [pcre-dev] [Bug 2513] Assumes file ends with a line break
https://bugs.exim.org/show_bug.cgi?id=2513

Philip Hazel <ph10@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED


--- Comment #1 from Philip Hazel <ph10@???> ---
It's a bit surprising that nobody has mentioned this before. :-) I cannot
remember why it is this way, but I suspect I was not wanting to get too tangled
up with the different line-ending conventions. However, giving it some more
thought and noting that grep adds a newline has convinced me to make a change.
I've just committed a patch that adds a line ending, taking note of the
--newline setting. If anybody is relying on the old behaviour and grumbles, it
will be easy enough to add an option to suppress this.

Philosophical Question: does NL mean "start new line" or "end last line"? I
suppose we treat it as both except at the very end of a file, where it isn't
usually interpreted as introducing an empty line (which it would at the start).

--
You are receiving this mail because:
You are on the CC list for the bug.