[fossil-users] bug : comment_print_legacy function destroys utf8 characters when wrapping text.

2017-06-16 Thread er38hcma
$ fossil diff --from trunk src/comformat.c @@ -188,8 +188,11 @@    maxChars = lineChars;    for(;;){ int useChars = 1; char c = zLine[index]; +    if( maxChars==1 && (c&0xC0)==0xC0 && lineChars!=1) { +  break; +    } if( c==0 ){    break; }else{    if( origBreak

Re: [fossil-users] bug : comment_print_legacy function destroys utf8 characters when wrapping text.

2017-06-15 Thread Stephan Beal
On Thu, Jun 15, 2017 at 3:15 AM, wrote: > Bug > > comment_print_legacy function destroys utf8 characters when wrapping > text. > > https://www.fossil-scm.org/index.html/artifact?ln=302- > 307=f570981a7bb58eb3 > src/comformat.c : Line 302-307 > For those whose mailers

[fossil-users] bug : comment_print_legacy function destroys utf8 characters when wrapping text.

2017-06-14 Thread er38hcma
Bug   comment_print_legacy function destroys utf8 characters when wrapping text. https://www.fossil-scm.org/index.html/artifact?ln=302-307=f570981a7bb58eb3 src/comformat.c : Line 302-307 (unsigned char) c: bit right shift 7: 0 is ascii, 1 is utf8. (unsigned char) c: bit right shift 6: 0b11 is