- strncpy(read_encoding.charset, fromcode, MAX_CHARSET_LEN);
- read_encoding.encoding = encoding;
- gedcom_debug_print("Encoding state is now: ");
- gedcom_debug_print(" charset : %s", read_encoding.charset);
- gedcom_debug_print(" encoding : %s", read_encoding.encoding);
- gedcom_debug_print(" width : %d", read_encoding.width);
- gedcom_debug_print(" BOM : %d", read_encoding.bom);
- gedcom_debug_print(" terminator: 0x%02x 0x%02x",
- read_encoding.terminator[0],
- read_encoding.terminator[1]);