Fossil SCM
Add 'unicodeCmdLine' option to the TH1 'hasfeature' command.
Commit
edb8237f06040e17c090d96ae1f8d649850c9091
Parent
998af5b2a84e557…
1 file changed
+6
+6
| --- src/th_main.c | ||
| +++ src/th_main.c | ||
| @@ -513,10 +513,11 @@ | ||
| 513 | 513 | ** "useTclStubs" = USE_TCL_STUBS |
| 514 | 514 | ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS |
| 515 | 515 | ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS |
| 516 | 516 | ** "json" = FOSSIL_ENABLE_JSON |
| 517 | 517 | ** "markdown" = FOSSIL_ENABLE_MARKDOWN |
| 518 | +** "unicodeCmdLine" = !BROKEN_MINGW_CMDLINE | |
| 518 | 519 | ** |
| 519 | 520 | */ |
| 520 | 521 | static int hasfeatureCmd( |
| 521 | 522 | Th_Interp *interp, |
| 522 | 523 | void *p, |
| @@ -570,10 +571,15 @@ | ||
| 570 | 571 | #endif |
| 571 | 572 | #if defined(FOSSIL_ENABLE_JSON) |
| 572 | 573 | else if( 0 == fossil_strnicmp( zArg, "json\0", 5 ) ){ |
| 573 | 574 | rc = 1; |
| 574 | 575 | } |
| 576 | +#endif | |
| 577 | +#if !defined(BROKEN_MINGW_CMDLINE) | |
| 578 | + else if( 0 == fossil_strnicmp( zArg, "unicodeCmdLine\0", 15 ) ){ | |
| 579 | + rc = 1; | |
| 580 | + } | |
| 575 | 581 | #endif |
| 576 | 582 | else if( 0 == fossil_strnicmp( zArg, "markdown\0", 9 ) ){ |
| 577 | 583 | rc = 1; |
| 578 | 584 | } |
| 579 | 585 | if( g.thTrace ){ |
| 580 | 586 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -513,10 +513,11 @@ | |
| 513 | ** "useTclStubs" = USE_TCL_STUBS |
| 514 | ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS |
| 515 | ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS |
| 516 | ** "json" = FOSSIL_ENABLE_JSON |
| 517 | ** "markdown" = FOSSIL_ENABLE_MARKDOWN |
| 518 | ** |
| 519 | */ |
| 520 | static int hasfeatureCmd( |
| 521 | Th_Interp *interp, |
| 522 | void *p, |
| @@ -570,10 +571,15 @@ | |
| 570 | #endif |
| 571 | #if defined(FOSSIL_ENABLE_JSON) |
| 572 | else if( 0 == fossil_strnicmp( zArg, "json\0", 5 ) ){ |
| 573 | rc = 1; |
| 574 | } |
| 575 | #endif |
| 576 | else if( 0 == fossil_strnicmp( zArg, "markdown\0", 9 ) ){ |
| 577 | rc = 1; |
| 578 | } |
| 579 | if( g.thTrace ){ |
| 580 |
| --- src/th_main.c | |
| +++ src/th_main.c | |
| @@ -513,10 +513,11 @@ | |
| 513 | ** "useTclStubs" = USE_TCL_STUBS |
| 514 | ** "tclStubs" = FOSSIL_ENABLE_TCL_STUBS |
| 515 | ** "tclPrivateStubs" = FOSSIL_ENABLE_TCL_PRIVATE_STUBS |
| 516 | ** "json" = FOSSIL_ENABLE_JSON |
| 517 | ** "markdown" = FOSSIL_ENABLE_MARKDOWN |
| 518 | ** "unicodeCmdLine" = !BROKEN_MINGW_CMDLINE |
| 519 | ** |
| 520 | */ |
| 521 | static int hasfeatureCmd( |
| 522 | Th_Interp *interp, |
| 523 | void *p, |
| @@ -570,10 +571,15 @@ | |
| 571 | #endif |
| 572 | #if defined(FOSSIL_ENABLE_JSON) |
| 573 | else if( 0 == fossil_strnicmp( zArg, "json\0", 5 ) ){ |
| 574 | rc = 1; |
| 575 | } |
| 576 | #endif |
| 577 | #if !defined(BROKEN_MINGW_CMDLINE) |
| 578 | else if( 0 == fossil_strnicmp( zArg, "unicodeCmdLine\0", 15 ) ){ |
| 579 | rc = 1; |
| 580 | } |
| 581 | #endif |
| 582 | else if( 0 == fossil_strnicmp( zArg, "markdown\0", 9 ) ){ |
| 583 | rc = 1; |
| 584 | } |
| 585 | if( g.thTrace ){ |
| 586 |