Fossil

Check-in [8c32e6f0]
Login

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

Overview
Comment:dont check for same BOM twice
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8c32e6f0dd098844c1a8c89c577b7f0f66a8bff5
User & Date: jan.nijtmans 2012-11-01 07:40:17
Context
2012-11-01
10:20
Restore Style fix, which got lost by [618258421767778c] check-in: ef6c243e user: jan.nijtmans tags: trunk
07:40
dont check for same BOM twice check-in: 8c32e6f0 user: jan.nijtmans tags: trunk
03:44
Merge commit warning and looks_like_text() enhancements to trunk. Further changes based on these will occur on a branch. check-in: 61825842 user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/diff.c.

229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
  const char *z = blob_buffer(pContent);
  int c1, c2;

  if( blob_size(pContent)<2 ) return 0;
  c1 = z[0]; c2 = z[1];
  if( (c1==(char)0xff) && (c2==(char)0xfe) ){
    return 1;
  }else if( (c1==(char)0xff) && (c2==(char)0xfe) ){
    return 1;
  }
  return 0;
}

/*
** Return true if two DLine elements are identical.







|







229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
  const char *z = blob_buffer(pContent);
  int c1, c2;

  if( blob_size(pContent)<2 ) return 0;
  c1 = z[0]; c2 = z[1];
  if( (c1==(char)0xff) && (c2==(char)0xfe) ){
    return 1;
  }else if( (c1==(char)0xfe) && (c2==(char)0xff) ){
    return 1;
  }
  return 0;
}

/*
** Return true if two DLine elements are identical.