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

Re: [PATCH] Improved hibit text literals

From:
Ilya Zakharevich
Date:
February 11, 2000 10:16
Subject:
Re: [PATCH] Improved hibit text literals
Message ID:
20000211131602.A1761@monk.mps.ohio-state.edu
On Fri, Feb 11, 2000 at 12:34:55PM +0100, Gisle Aas wrote:
> > Hmm???  Please no DWIM here.  Programmers would like to know what
> > their string literals mean.  Or did I misunderstand you?
> 
> We have two options here.  Either to croak or to convert.  After my
> patch the last thing happens.
> 
> $ ./perl -MDevel::Peek -e 'Dump("å")'
> SV = PV(0x817de08) at 0x8156028
>   REFCNT = 1
>   FLAGS = (POK,READONLY,pPOK)
>   PV = 0x815c088 "\345"\0
>   CUR = 1
>   LEN = 2
> 
> $ ./perl -MDevel::Peek -e 'use utf8; Dump("å")'
> Malformed UTF-8 character at -e line 1.
> SV = PV(0x81563b4) at 0x816009c
>   REFCNT = 1
>   FLAGS = (POK,READONLY,pPOK,UTF8)
>   PV = 0x817b480 "\303\245"\0
>   CUR = 2
>   LEN = 3

I would rather croak...

Ilya



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