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:
Marc Lehmann
Date:
March 30, 2007 16:06
Subject:
Re: the utf8 flag (was Re: [perl #41527] decode_utf8 sets utf8 flag on plain ascii strings)
Message ID:
20070330230644.GF18872@schmorp.de
On Fri, Mar 30, 2007 at 02:00:37PM -0700, Marvin Humphrey <marvin@rectangular.com> wrote:
> >>Thats a broken unicode model
> >
> >So far, I've only seen a broken understanding of the unicode model,  
> >and
> >a broken regex engine.
> 
> That so many users, including those as expert as Marc, possess a  
> "broken" understanding of Perl's Unicode model suggests a flawed  
> design.  We have been set up to fail.

My "broken" understand bails down to users not having to know about the
internal UTF-X flag. If that is indeed wrong, then going back to the
explicit 5.005_5x model where you indeed had to track your encoding
manually is the right thing.

However, I claim it would a great loss. Back to the assembly programming
of unicode.

-- 
                The choice of a
      -----==-     _GNU_
      ----==-- _       generation     Marc Lehmann
      ---==---(_)__  __ ____  __      pcg@goof.com
      --==---/ / _ \/ // /\ \/ /      http://schmorp.de/
      -=====/_/_//_/\_,_/ /_/\_\      XX11-RIPE

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