Fossil

Check-in [a7fff6fe]
Login

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

Overview
Comment:off-by-one
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | improve_commit_warning
Files: files | file ages | folders
SHA1: a7fff6fea61901ccc6dcafac77aef3ced06317b5
User & Date: jan.nijtmans 2012-11-04 18:06:29
Context
2012-11-05
11:23
Add commit warning message when text files have a long line length check-in: 87901276 user: jan.nijtmans tags: improve_commit_warning
2012-11-04
18:06
off-by-one check-in: a7fff6fe user: jan.nijtmans tags: improve_commit_warning
18:03
merge trunk check-in: e86aa2a1 user: jan.nijtmans tags: improve_commit_warning
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/checkin.c.

904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
  char *zMsg;             /* Warning message */
  Blob fname;             /* Relative pathname of the file */
  static int allOk = 0;   /* Set to true to disable this routine */

  if( allOk ) return;
  fUnicode = starts_with_utf16_bom(p);
  eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p);
  if( eType<-3){
    Blob ans;
    char cReply;

    blob_zero(&ans);
    file_relative_name(zFilename, &fname, 0);
    zMsg = mprintf(
         "%s appears to be text, but not UTF-8 or ASCII.  commit anyhow (y/N)? ",







|







904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
  char *zMsg;             /* Warning message */
  Blob fname;             /* Relative pathname of the file */
  static int allOk = 0;   /* Set to true to disable this routine */

  if( allOk ) return;
  fUnicode = starts_with_utf16_bom(p);
  eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p);
  if( eType<-2){
    Blob ans;
    char cReply;

    blob_zero(&ans);
    file_relative_name(zFilename, &fname, 0);
    zMsg = mprintf(
         "%s appears to be text, but not UTF-8 or ASCII.  commit anyhow (y/N)? ",