Fossil SCM

don't let fossil choke any more (syntax error) when a card contains a backslash in a filename. This doesn't mean that a backslash is now allowed in a filename, only that fossil can handle the card, and show what's wrong.

jan.nijtmans 2013-01-26 17:56 trunk merge
Commit b178bcb897f186238dd4b0658a7bdd5fbd0b0344
1 file changed +1 -1
+1 -1
--- src/file.c
+++ src/file.c
@@ -547,11 +547,11 @@
547547
if( (z[++i]&0xc0)!=0x80 ){
548548
/* Invalid second continuation byte */
549549
return 0;
550550
}
551551
}
552
- }else if( c=='\\' ){
552
+ }else if( bStrictUtf8 && (c=='\\') ){
553553
return 0;
554554
}
555555
if( c=='/' ){
556556
if( z[i+1]=='/' ) return 0;
557557
if( z[i+1]=='.' ){
558558
--- src/file.c
+++ src/file.c
@@ -547,11 +547,11 @@
547 if( (z[++i]&0xc0)!=0x80 ){
548 /* Invalid second continuation byte */
549 return 0;
550 }
551 }
552 }else if( c=='\\' ){
553 return 0;
554 }
555 if( c=='/' ){
556 if( z[i+1]=='/' ) return 0;
557 if( z[i+1]=='.' ){
558
--- src/file.c
+++ src/file.c
@@ -547,11 +547,11 @@
547 if( (z[++i]&0xc0)!=0x80 ){
548 /* Invalid second continuation byte */
549 return 0;
550 }
551 }
552 }else if( bStrictUtf8 && (c=='\\') ){
553 return 0;
554 }
555 if( c=='/' ){
556 if( z[i+1]=='/' ) return 0;
557 if( z[i+1]=='.' ){
558

Keyboard Shortcuts

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