develooper Front page | perl.perl5.porters | Postings from March 2007

Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)

Thread Previous | Thread Next
From:
Juerd Waalboer
Date:
March 30, 2007 18:16
Subject:
Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)
Message ID:
20070331011550.GP31277@c4.convolution.nl
Marc Lehmann skribis 2007-03-31  2:48 (+0200):
> > A koi8r string is a byte string. If you keep it separated from text
> Your definiton is completely useless in the real world. Obviously, a KOI8-R
> string is a text string. It contains text characters. End of story.

This is a logical thing to say, but unfortunately not very useful.

The distinction between a text string, and a byte string representing
text, is actually useful.

> You also have very weird ideas of what programmers should and should
> not do the defy reality.

Weird ideas, maybe, but at least weird ideas that help dozens of people
write working and maintainable code.

You don't believe in my weird ideas, fine. But I find it very
interesting that you run into all these problems with Perl's unicode
support, while the people who stick to my weird ideas write lots of code
without that.

> I find all that contradictory, but as you ignore the evidence I
> presented and the question I asked you (JSON::XS example), I see no
> point in continuing talking to you.

Unfortunately, I understand very little of the JSON example. I don't
know JSON and would have to learn about it first.
-- 
korajn salutojn,

  juerd waalboer:  perl hacker  <juerd@juerd.nl>  <http://juerd.nl/sig>
  convolution:     ict solutions and consultancy <sales@convolution.nl>

Ik vertrouw stemcomputers niet.
Zie <http://www.wijvertrouwenstemcomputersniet.nl/>.

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