[FIX] Disable BOM in non-Windows build (#1268)

* Disable BOM in non-Windows build

* Disable BOM in non-Windows build
This commit is contained in:
hamelg 2020-05-10 00:21:45 +02:00 committed by GitHub
parent 33ecccedce
commit e411a75dcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,7 +132,11 @@ void init_options(struct ccx_s_options *options)
options->enc_cfg.start_credits_text = NULL;
options->enc_cfg.end_credits_text = NULL;
options->enc_cfg.encoding = CCX_ENC_UTF_8;
options->enc_cfg.no_bom = 0; // Use BOM by default.
#ifdef _WIN32
options->enc_cfg.no_bom = 0; // Use BOM by default for windows only
#else
options->enc_cfg.no_bom = 1;
#endif
options->enc_cfg.services_charsets = NULL;
options->enc_cfg.all_services_charset = NULL;
options->enc_cfg.with_semaphore = 0;