Little fix, closing an else
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 4 Jan 2003 20:01:52 +0000 (20:01 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sat, 4 Jan 2003 20:01:52 +0000 (20:01 +0000)
gedcom/multilex.c

index 420bfcb8b1c88b7a684328313f85055601df6af2..7ff4efe0fb5eccb2651d3e78c8b84db512bfc1ec 100644 (file)
@@ -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 {