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