Fossil SCM

Adjust check for bypassing Unicode/CR/NL warning.

mistachkin 2012-11-25 22:01 UTC bellon-unicode
Commit be15485aa6a78209c1060da2ebdd3063399da5f5
1 file changed +2 -2
+2 -2
--- src/checkin.c
+++ src/checkin.c
@@ -908,12 +908,12 @@
908908
const char *zWarning;
909909
Blob ans;
910910
char cReply;
911911
912912
if( eType==-1 && fUnicode ){
913
- if ( unicodeOk ){
914
- return; /* We don't want unicode warnings for this file. */
913
+ if ( crnlOk && unicodeOk ){
914
+ return; /* We don't want Unicode/CR/NL warnings for this file. */
915915
}
916916
zWarning = "Unicode and CR/NL line endings";
917917
}else if( eType==-1 ){
918918
if( crnlOk ){
919919
return; /* We don't want CR/NL warnings for this file. */
920920
--- src/checkin.c
+++ src/checkin.c
@@ -908,12 +908,12 @@
908 const char *zWarning;
909 Blob ans;
910 char cReply;
911
912 if( eType==-1 && fUnicode ){
913 if ( unicodeOk ){
914 return; /* We don't want unicode warnings for this file. */
915 }
916 zWarning = "Unicode and CR/NL line endings";
917 }else if( eType==-1 ){
918 if( crnlOk ){
919 return; /* We don't want CR/NL warnings for this file. */
920
--- src/checkin.c
+++ src/checkin.c
@@ -908,12 +908,12 @@
908 const char *zWarning;
909 Blob ans;
910 char cReply;
911
912 if( eType==-1 && fUnicode ){
913 if ( crnlOk && unicodeOk ){
914 return; /* We don't want Unicode/CR/NL warnings for this file. */
915 }
916 zWarning = "Unicode and CR/NL line endings";
917 }else if( eType==-1 ){
918 if( crnlOk ){
919 return; /* We don't want CR/NL warnings for this file. */
920

Keyboard Shortcuts

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