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

Re: BOMs as noncharacters

Thread Previous | Thread Next
From:
Steffen Daode Nurpmeso
Date:
August 18, 2011 13:53
Subject:
Re: BOMs as noncharacters
Message ID:
20110818205330.GA28238@sherwood.local
(Since this is Cc'd to the Perl list:
My first post here.
After 14 years of superficial ;) Perl usage i *want* to say:
Many, *many* thanks!
.. And on this list, there are even living (!) women!!)

@ Tom Christiansen <tchrist@perl.com> wrote (2011-08-18 14:12+0200):
> [.] This is stupid. [.]
> Sloppy Microsoft people tend to be guilty of both sins and often
> simultaneously, thereby needlessly making all of our lives more
> difficult.  Just say no.

I wonder if there is a solution to this problem.
Anyway it seems there are files around which contain BOM's in
UTF-8 files.  (Working in my isolated little place, looking only
at (parts of) the standart, i didn't think about something like
that, unless i read it on a list Wanda would never visit.  :-))

But that as a starting point, and it is likely that there are
files which put a (real ie. 16 bit, not UTF-8 encoded) BOM in
there.

So good stuff seems to be rather condemned to handle these really
mindless cases tolerantly on the one hand, but/and to - of course -
produce valid data itself on the other.  The cat(1) example (which
i've also seen on the mentioned list) shows clearly that some,
maybe even the majority of people, are not really interested in
doing *good*.  *You* do well.  Much better than being a constrictor.
Deep breath.

--Steffen
Ciao, sdaoden(*)(gmail.com)
ASCII ribbon campaign           ( ) More nuclear fission plants
  against HTML e-mail            X    can serve more coloured
    and proprietary attachments / \     and sounding animations

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