[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#620379: headache: miscalculates length of lines containing UTF8 characters



Hi Mehdi,

On Thu, Jan 05, 2012 at 02:44:52PM +0100, Mehdi Dogguy wrote:

> I was also annoyed by the same issue. I've pushed a (tentative) fix
> to the Git repository. (I attach the patch here for reference only).
> I've used extlib's UTF8.length function to correctly determine
> length of strings. I'd appreciate testing and any feedback. I didn't
> change all String.length invocations though, only for lines'
> content. The idea is that it is quite unlikely to use a non-ascii
> character for comment delimiters.

looks good to me (I did some quick tests). Please go ahead with the
upload if you wish. I just have added the build-dependency on extlib.

Thanks a lot ! -Ralf.



Reply to: