File handling: Do not abort on seeing a BOM in input files, just warn and ignore the BOM

This commit is contained in:
Jens Steube
2021-06-29 20:42:22 +02:00
parent 2af45cd03f
commit 254e33c473
7 changed files with 114 additions and 84 deletions
+1
View File
@@ -63,6 +63,7 @@ bool hc_path_create (const char *path);
bool hc_path_has_bom (const char *path);
bool hc_string_is_digit (const char *s);
int hc_string_bom_size (const u8 *s);
void hc_string_trim_trailing (char *s);
void hc_string_trim_leading (char *s);