develooper Front page | perl.perl5.porters | Postings from February 2014

[perl #121292] perlunicode claims about a UTF-8 BOM in perl source are incorrect

From:
Ricardo SIGNES via RT
Date:
February 26, 2014 23:46
Subject:
[perl #121292] perlunicode claims about a UTF-8 BOM in perl source are incorrect
Message ID:
rt-4.0.18-3939-1393458359-706.121292-15-0@perl.org
The documentation is incorrect.  We should keep the current behavior of ignoring the BOM and otherwise continuing as normal.

The situation is annoying from many angles, but the presence of a BOM changing the behavior of a file that may otherwise be entirely plain ol' ASCII is going to lead to real pain when debugging.  I wouldn't want an invisible sequence to start turning on utf8.pm's behavior normally, and even less so as a backward incompatible change.  UTF-8 BOMs are best ignored.  (Also, best never written out, but that's another matter.)



---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=121292



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