Fossil SCM
off-by-one
Commit
a7fff6fea61901ccc6dcafac77aef3ced06317b5
Parent
e86aa2a1e800504…
1 file changed
+1
-1
+1
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -906,11 +906,11 @@ | ||
| 906 | 906 | static int allOk = 0; /* Set to true to disable this routine */ |
| 907 | 907 | |
| 908 | 908 | if( allOk ) return; |
| 909 | 909 | fUnicode = starts_with_utf16_bom(p); |
| 910 | 910 | eType = fUnicode ? looks_like_utf16(p) : looks_like_utf8(p); |
| 911 | - if( eType<-3){ | |
| 911 | + if( eType<-2){ | |
| 912 | 912 | Blob ans; |
| 913 | 913 | char cReply; |
| 914 | 914 | |
| 915 | 915 | blob_zero(&ans); |
| 916 | 916 | file_relative_name(zFilename, &fname, 0); |
| 917 | 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<-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 |