Bug#481115: justify plug-in don't work with 2-byte's UTF-8 texts.

James Vega jamessan at debian.org
Wed May 28 23:14:37 UTC 2008

On Tue, May 13, 2008 at 11:20:17PM +0400, Dmitry E. Oboukhov wrote:
> It's evidently that plug-in compute words and strings length
> wrong.	 The  most  probability  is  that  plug-in   compute
> words/strings  length	in   bytes   but   not	 in   chars.

Correct.  The vimscript function strlen() simply returns the number of
bytes.  There are various workarounds but they don't apply to all
different encodings.  If you could send an example file, I'll test the
workaround that should be applicable in most cases.

GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080528/5acd2eb9/attachment.pgp 

More information about the pkg-vim-maintainers mailing list