Re: Wrap utf-8 patch.



On 03/14/2003, nshmyrev wrote:
> Hello all.
> 
> There is 9!!! bug-fix versions of balsa since balsa 2 is out.

To be fair, the first few were `technology previews'!

> But wrong wrapping with utf-8 symbols is not corrected!
> 
> Apply patch to do this.

Thanks!  It's certainly time for that...

[ snip ]

One issue:
>                  while (len < max_width && isspace((int)*str)) {

The `max_width' limit is a byte-count, and len is no longer in bytes. I 
guess len should be replaced by (str - start)? (perhaps + the size of 
the longest utf-8 sequence?)

Peter



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