Do not put a UTF-8 BOM into the Zugvorlage.
This commit is contained in:
Enno Rehling 2021-04-18 11:30:38 +02:00
parent 15fd2c9026
commit 374d9d0bb6
1 changed files with 3 additions and 1 deletions

View File

@ -87,6 +87,8 @@
#include <limits.h>
#include <stdlib.h>
#define TEMPLATE_BOM 0
/* pre-C99 compatibility */
#ifndef SIZE_MAX
#define SIZE_MAX ((size_t)(-1))
@ -1289,7 +1291,7 @@ report_template(const char *filename, report_context * ctx, const char *bom)
}
fstream_init(&strm, F);
if (bom) {
if (TEMPLATE_BOM && bom) {
swrite(bom, 1, strlen(bom), out);
}