Fossil SCM

off-by-one

jan.nijtmans 2012-11-04 18:06 improve_commit_warning
Commit a7fff6fea61901ccc6dcafac77aef3ced06317b5
1 file changed +1 -1
+1 -1
--- src/checkin.c
+++ src/checkin.c
@@ -906,11 +906,11 @@
906906
static int allOk = 0; /* Set to true to disable this routine */
907907
908908
if( allOk ) return;
909909
fUnicode = starts_with_utf16_bom(p);
910910
eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p);
911
- if( eType<-3){
911
+ if( eType<-2){
912912
Blob ans;
913913
char cReply;
914914
915915
blob_zero(&ans);
916916
file_relative_name(zFilename, &fname, 0);
917917
--- src/checkin.c
+++ src/checkin.c
@@ -906,11 +906,11 @@
906 static int allOk = 0; /* Set to true to disable this routine */
907
908 if( allOk ) return;
909 fUnicode = starts_with_utf16_bom(p);
910 eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p);
911 if( eType<-3){
912 Blob ans;
913 char cReply;
914
915 blob_zero(&ans);
916 file_relative_name(zFilename, &fname, 0);
917
--- src/checkin.c
+++ src/checkin.c
@@ -906,11 +906,11 @@
906 static int allOk = 0; /* Set to true to disable this routine */
907
908 if( allOk ) return;
909 fUnicode = starts_with_utf16_bom(p);
910 eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p);
911 if( eType<-2){
912 Blob ans;
913 char cReply;
914
915 blob_zero(&ans);
916 file_relative_name(zFilename, &fname, 0);
917

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button