develooper Front page | perl.perl5.porters | Postings from June 2010

Re: [perl #75680] Certain regex patterns cause fatal errors withvalid UTF-8

Thread Previous | Thread Next
From:
Dr.Ruud
Date:
June 13, 2010 15:27
Subject:
Re: [perl #75680] Certain regex patterns cause fatal errors withvalid UTF-8
Message ID:
20100613094536.26505.qmail@lists-nntp.develooper.com
Doug Cook wrote:

> My program worked fine under previous versions of Perl on MacOS (prior to Snow Leopard).
> 
> Now it dies under 5.8.9, 5.10.0 and 5.12.1, with "Malformed UTF-8 character (fatal)" - but the input data is the same, and is, as far as I can tell, perfectly valid UTF-8.

It could well be that your editor saves the source as either UTF-8 or 
ISO-8859-1. Did you check the input data at the byte level?

-- 
Ruud

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