X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=gedcom%2Fmultilex.c;h=7ff4efe0fb5eccb2651d3e78c8b84db512bfc1ec;hb=98a5cf857ba2bc9f574b924bc7e96d5e50c0a4db;hp=420bfcb8b1c88b7a684328313f85055601df6af2;hpb=32da62601457ba994c6b71d71470ae066fc3969b;p=gedcom-parse.git diff --git a/gedcom/multilex.c b/gedcom/multilex.c index 420bfcb..7ff4efe 100644 --- a/gedcom/multilex.c +++ b/gedcom/multilex.c @@ -117,6 +117,10 @@ int determine_encoding(FILE* f) else if (first[0] == '\xBF') { gedcom_debug_print(_("UTF-8 encoding, with BOM")); } + else { + gedcom_warning(_("Unknown encoding, falling back to one-byte")); + rewind_file(f); + } return ONE_BYTE; } else {