develooper Front page | perl.perl5.porters | Postings from June 2011

Re: Can we do global bug fixes that change behavior?

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
June 28, 2011 15:24
Subject:
Re: Can we do global bug fixes that change behavior?
Message ID:
BANLkTikGOiRWAoaCC1WvCYaaXLWE+QxGyg@mail.gmail.com
On Tue, Jun 28, 2011 at 11:31 PM, Christian Walde
<walde.christian@googlemail.com> wrote:
> xdg suggested on IRC that i ask this as a separate question, so:
>
> obra:
>
> Assuming p5p reaches an agreement that magical newline-changing on Windows
> is a bug, would you agree to changing the behavior globally for the
> interpreter; or only accept it as a lexical fix when 'use v5.16' is in
> effect no matter what the concensus is?
>
> leont indicated that this kind of change could be applied with zero ill
> effects from 5.14 on, and with a possible performance regression from 5.12
> on.

It should be easy from an implementation point of view. My main
concern is that files written in current versions will show up
differently in the newer versions (carriage returns at the end of
lines), and that would cause some breakage.

Such a transition could be made easier by a generic :text. This layer
should probably be based on the robustness principle (e.g. it should
accept both LF and CRLF line-endings for input, but only output LF).

Leon

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About