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

[email protected] ("Dr.Ruud")
Newsgroups perl.perl5.porters
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.