aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 4e59f2b6a1b..49dcd8634f3 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1431,7 +1431,7 @@ encode_coding_utf_8 (struct coding_system *coding)
1431 ptrdiff_t produced_chars = 0; 1431 ptrdiff_t produced_chars = 0;
1432 int c; 1432 int c;
1433 1433
1434 if (CODING_UTF_8_BOM (coding) == utf_with_bom) 1434 if (CODING_UTF_8_BOM (coding) != utf_without_bom)
1435 { 1435 {
1436 ASSURE_DESTINATION (3); 1436 ASSURE_DESTINATION (3);
1437 EMIT_THREE_BYTES (UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3); 1437 EMIT_THREE_BYTES (UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3);