Fossil SCM

On Cygwin, when editing with Notepad, make sure it starts with the UTF-8 BOM.

jan.nijtmans 2013-09-06 22:18 trunk
Commit 3e90ef61f302f250d0b49b172c57eb6e32cc904d
2 files changed +1 -1 +1 -1
+1 -1
--- src/checkin.c
+++ src/checkin.c
@@ -714,11 +714,11 @@
714714
char *zInit,
715715
CheckinInfo *p,
716716
int parent_rid
717717
){
718718
Blob prompt;
719
-#ifdef _WIN32
719
+#if defined(_WIN32) || defined(__CYGWIN__)
720720
int bomSize;
721721
const unsigned char *bom = get_utf8_bom(&bomSize);
722722
blob_init(&prompt, (const char *) bom, bomSize);
723723
if( zInit && zInit[0]) {
724724
blob_append(&prompt, zInit, -1);
725725
--- 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 @@
158158
zComment = find_option("comment", "m", 1);
159159
verify_all_options();
160160
if( zComment==0 ){
161161
Blob prompt; /* Prompt for stash comment */
162162
Blob comment; /* User comment reply */
163
-#ifdef _WIN32
163
+#if defined(_WIN32) || defined(__CYGWIN__)
164164
int bomSize;
165165
const unsigned char *bom = get_utf8_bom(&bomSize);
166166
blob_init(&prompt, (const char *) bom, bomSize);
167167
#else
168168
blob_zero(&prompt);
169169
--- 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

Keyboard Shortcuts

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