Fossil SCM

C

jan.nijtmans 2012-09-25 20:40 use-utf8-in-win-external-editor
Commit fa8e0fed9c4b2cc3eb46ad40546a504be76ac1a0
1 file changed +2 -2
+2 -2
--- src/checkin.c
+++ src/checkin.c
@@ -495,12 +495,12 @@
495495
}
496496
#if defined(_WIN32)
497497
blob_add_cr(&text);
498498
#endif
499499
if( zEditor || fossil_utf8_to_console(blob_buffer(&text), blob_size(&text), 0) < 0) {
500
- /* We have an external editor or else we cannot write it directly to the
501
- * (windows) console, so write it to stdout in mbcs encoding. */
500
+ /* We have an external editor or else we cannot write directly to the
501
+ * (windows) console, so write it out in mbcs encoding. */
502502
struct Blob temp;
503503
zComment = fossil_utf8_to_mbcs(blob_str(&text));
504504
blob_set(&temp, zComment);
505505
blob_write_to_file(&temp, zFile);
506506
blob_zero(&temp);
507507
--- src/checkin.c
+++ src/checkin.c
@@ -495,12 +495,12 @@
495 }
496 #if defined(_WIN32)
497 blob_add_cr(&text);
498 #endif
499 if( zEditor || fossil_utf8_to_console(blob_buffer(&text), blob_size(&text), 0) < 0) {
500 /* We have an external editor or else we cannot write it directly to the
501 * (windows) console, so write it to stdout in mbcs encoding. */
502 struct Blob temp;
503 zComment = fossil_utf8_to_mbcs(blob_str(&text));
504 blob_set(&temp, zComment);
505 blob_write_to_file(&temp, zFile);
506 blob_zero(&temp);
507
--- src/checkin.c
+++ src/checkin.c
@@ -495,12 +495,12 @@
495 }
496 #if defined(_WIN32)
497 blob_add_cr(&text);
498 #endif
499 if( zEditor || fossil_utf8_to_console(blob_buffer(&text), blob_size(&text), 0) < 0) {
500 /* We have an external editor or else we cannot write directly to the
501 * (windows) console, so write it out in mbcs encoding. */
502 struct Blob temp;
503 zComment = fossil_utf8_to_mbcs(blob_str(&text));
504 blob_set(&temp, zComment);
505 blob_write_to_file(&temp, zFile);
506 blob_zero(&temp);
507

Keyboard Shortcuts

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