Fossil

Check-in [e6216197]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix TTY comment line break logic for UTF8 multi-byte characters.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:e62161976ef88735ce0aa0a6c85d2daf5d8f4647a3a1427a12ca6626cf69cd81
User & Date: drh 2017-06-15 03:37:45
Context
2017-06-15
12:52
Bring in the enhanced "shell.c" with the improved ".schema" and ".tables" commands from upstream SQLite. check-in: d9e55519 user: drh tags: trunk
03:37
Fix TTY comment line break logic for UTF8 multi-byte characters. check-in: e6216197 user: drh tags: trunk
03:13
Use -O0 instead of -O2 for compiling when the --fossil-debug option of ./configure is used. check-in: 8a6e31f6 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/comformat.c.

224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
      }
      charCnt++;
    }else{
      charCnt++;
    }
    assert( c!='\n' || charCnt==0 );
    fossil_print("%c", c);
    maxChars -= useChars;
    if( maxChars==0 ) break;
    assert( maxChars>0 );
    if( c=='\n' ) break;
  }
  if( charCnt>0 ){
    fossil_print("\n");
    lineCnt++;
  }
  if( pLineCnt ){







|
|
<







224
225
226
227
228
229
230
231
232

233
234
235
236
237
238
239
      }
      charCnt++;
    }else{
      charCnt++;
    }
    assert( c!='\n' || charCnt==0 );
    fossil_print("%c", c);
    if( (c&0x80)==0 || (zLine[index+1]&0xc0)!=0xc0 ) maxChars -= useChars;
    if( maxChars<=0 ) break;

    if( c=='\n' ) break;
  }
  if( charCnt>0 ){
    fossil_print("\n");
    lineCnt++;
  }
  if( pLineCnt ){