Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Richard Hipp
On Wed, Jun 20, 2012 at 1:24 AM, Александр Орефков oref...@gmail.comwrote: Hi. If text of file in utf-8 contain not latin characters, alignment in side-by-side diffs web page broken. Seems to count bytes, not characters for alignment. I have a note of your problem. I will address it when I

Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Александр Орефков
Hi. I temporary use simple crutch in diff.c in sbsWriteText: ... }else if( c=='' p-escHtml ){ memcpy(z[j], gt;, 4); j += 4; }else{ z[j++] = c; /*fix for russian utf-8 - 2 bytes per symbol*/ if( c0 ) { z[j++] = zIn[++i]; } } It worked. At

Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Александр Орефков
2012/6/20 Martin Gagnon eme...@gmail.com: Le 2012-06-20 à 04:49, Александр Орефков oref...@gmail.com a écrit : Hi. I temporary use simple crutch in diff.c in sbsWriteText: ...    }else if( c=='' p-escHtml ){      memcpy(z[j], gt;, 4);      j += 4;    }else{      z[j++] = c;      /*fix

Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Lluís Batlle i Rossell
On Wed, Jun 20, 2012 at 09:24:53AM +0400, Александр Орефков wrote: Hi. If text of file in utf-8 contain not latin characters, alignment in side-by-side diffs web page broken. Seems to count bytes, not characters for alignment. yes, that has been reported before. It's quite easy to count

Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Александр Орефков
2012/6/20 Lluís Batlle i Rossell vi...@viric.name: yes, that has been reported before. It's quite easy to count utf-8... but maybe not everyone uses utf-8. Should we add a 'setting' for 8-bit or utf-8 characters? In Fossil in web pages header set utf-8 code page, so not utf-8 file text

Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Lluís Batlle i Rossell
On Wed, Jun 20, 2012 at 02:16:19PM +0400, Александр Орефков wrote: 2012/6/20 Lluís Batlle i Rossell vi...@viric.name: yes, that has been reported before. It's quite easy to count utf-8... but maybe not everyone uses utf-8. Should we add a 'setting' for 8-bit or utf-8 characters?

Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Richard Hipp
On Wed, Jun 20, 2012 at 1:24 AM, Александр Орефков oref...@gmail.comwrote: Hi. If text of file in utf-8 contain not latin characters, alignment in side-by-side diffs web page broken. Seems to count bytes, not characters for alignment. Fixed here:

Re: [fossil-users] Broken alignment in side-by-side diffs

2012-06-20 Thread Martin Gagnon
Le 12-06-20 06:16, Александр Орефков a écrit : 2012/6/20 Lluís Batlle i Rossell vi...@viric.name: yes, that has been reported before. It's quite easy to count utf-8... but maybe not everyone uses utf-8. Should we add a 'setting' for 8-bit or utf-8 characters? In Fossil in web pages