Fossil SCM
On Cygwin, when editing with Notepad, make sure it starts with the UTF-8 BOM.
Commit
3e90ef61f302f250d0b49b172c57eb6e32cc904d
Parent
c66ee0d66737ff6…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/checkin.c | ||
| +++ src/checkin.c | ||
| @@ -714,11 +714,11 @@ | ||
| 714 | 714 | char *zInit, |
| 715 | 715 | CheckinInfo *p, |
| 716 | 716 | int parent_rid |
| 717 | 717 | ){ |
| 718 | 718 | Blob prompt; |
| 719 | -#ifdef _WIN32 | |
| 719 | +#if defined(_WIN32) || defined(__CYGWIN__) | |
| 720 | 720 | int bomSize; |
| 721 | 721 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| 722 | 722 | blob_init(&prompt, (const char *) bom, bomSize); |
| 723 | 723 | if( zInit && zInit[0]) { |
| 724 | 724 | blob_append(&prompt, zInit, -1); |
| 725 | 725 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -714,11 +714,11 @@ | |
| 714 | char *zInit, |
| 715 | CheckinInfo *p, |
| 716 | int parent_rid |
| 717 | ){ |
| 718 | Blob prompt; |
| 719 | #ifdef _WIN32 |
| 720 | int bomSize; |
| 721 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| 722 | blob_init(&prompt, (const char *) bom, bomSize); |
| 723 | if( zInit && zInit[0]) { |
| 724 | blob_append(&prompt, zInit, -1); |
| 725 |
| --- src/checkin.c | |
| +++ src/checkin.c | |
| @@ -714,11 +714,11 @@ | |
| 714 | char *zInit, |
| 715 | CheckinInfo *p, |
| 716 | int parent_rid |
| 717 | ){ |
| 718 | Blob prompt; |
| 719 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 720 | int bomSize; |
| 721 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| 722 | blob_init(&prompt, (const char *) bom, bomSize); |
| 723 | if( zInit && zInit[0]) { |
| 724 | blob_append(&prompt, zInit, -1); |
| 725 |
+1
-1
| --- src/stash.c | ||
| +++ src/stash.c | ||
| @@ -158,11 +158,11 @@ | ||
| 158 | 158 | zComment = find_option("comment", "m", 1); |
| 159 | 159 | verify_all_options(); |
| 160 | 160 | if( zComment==0 ){ |
| 161 | 161 | Blob prompt; /* Prompt for stash comment */ |
| 162 | 162 | Blob comment; /* User comment reply */ |
| 163 | -#ifdef _WIN32 | |
| 163 | +#if defined(_WIN32) || defined(__CYGWIN__) | |
| 164 | 164 | int bomSize; |
| 165 | 165 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| 166 | 166 | blob_init(&prompt, (const char *) bom, bomSize); |
| 167 | 167 | #else |
| 168 | 168 | blob_zero(&prompt); |
| 169 | 169 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -158,11 +158,11 @@ | |
| 158 | zComment = find_option("comment", "m", 1); |
| 159 | verify_all_options(); |
| 160 | if( zComment==0 ){ |
| 161 | Blob prompt; /* Prompt for stash comment */ |
| 162 | Blob comment; /* User comment reply */ |
| 163 | #ifdef _WIN32 |
| 164 | int bomSize; |
| 165 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| 166 | blob_init(&prompt, (const char *) bom, bomSize); |
| 167 | #else |
| 168 | blob_zero(&prompt); |
| 169 |
| --- src/stash.c | |
| +++ src/stash.c | |
| @@ -158,11 +158,11 @@ | |
| 158 | zComment = find_option("comment", "m", 1); |
| 159 | verify_all_options(); |
| 160 | if( zComment==0 ){ |
| 161 | Blob prompt; /* Prompt for stash comment */ |
| 162 | Blob comment; /* User comment reply */ |
| 163 | #if defined(_WIN32) || defined(__CYGWIN__) |
| 164 | int bomSize; |
| 165 | const unsigned char *bom = get_utf8_bom(&bomSize); |
| 166 | blob_init(&prompt, (const char *) bom, bomSize); |
| 167 | #else |
| 168 | blob_zero(&prompt); |
| 169 |