lightspark/lightspark — pull request #170 by dbluelle (2012-01-27 20:22:52+00:00)
Title: search should return character position, not byte position

I don't know if there's a better solution to this,
but I don't think you can have pcre_exec return the character position instead of the byte position.
So we have to do the byte to character conversion on our own.
(This fixes about 400 testcases).