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.
Commit
b178bcb897f186238dd4b0658a7bdd5fbd0b0344
Parent
1a5ac3058306962…
1 file changed
+1
-1
+1
-1
| --- src/file.c | ||
| +++ src/file.c | ||
| @@ -547,11 +547,11 @@ | ||
| 547 | 547 | if( (z[++i]&0xc0)!=0x80 ){ |
| 548 | 548 | /* Invalid second continuation byte */ |
| 549 | 549 | return 0; |
| 550 | 550 | } |
| 551 | 551 | } |
| 552 | - }else if( c=='\\' ){ | |
| 552 | + }else if( bStrictUtf8 && (c=='\\') ){ | |
| 553 | 553 | return 0; |
| 554 | 554 | } |
| 555 | 555 | if( c=='/' ){ |
| 556 | 556 | if( z[i+1]=='/' ) return 0; |
| 557 | 557 | if( z[i+1]=='.' ){ |
| 558 | 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( 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 |