dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Only try to delete address if present.
[gedcom-parse.git]
/
t
/
src
/
gom_write.c
diff --git
a/t/src/gom_write.c
b/t/src/gom_write.c
index a9f0284e0e7bb34def59265992df5a7baf524f06..30a45a64c777b4332638b8b340cfa20d3393fe75 100644
(file)
--- a/
t/src/gom_write.c
+++ b/
t/src/gom_write.c
@@
-235,8
+235,6
@@
int main(int argc, char* argv[])
gedcom_init();
setlocale(LC_ALL, "");
gedcom_set_message_handler(gedcom_message_handler);
gedcom_init();
setlocale(LC_ALL, "");
gedcom_set_message_handler(gedcom_message_handler);
- gedcom_write_set_encoding(ENC_MANUAL, encoding, enc, bom);
- gedcom_write_set_line_terminator(ENC_MANUAL, end);
output_open(outfilename);
output_open(outfilename);
@@
-244,6
+242,8
@@
int main(int argc, char* argv[])
result = gom_parse_file(infilename);
}
else {
result = gom_parse_file(infilename);
}
else {
+ gedcom_write_set_encoding(ENC_MANUAL, encoding, enc, bom);
+ gedcom_write_set_line_terminator(ENC_MANUAL, end);
result = gom_new_model();
if (result == 0)
result |= update_header(encoding);
result = gom_new_model();
if (result == 0)
result |= update_header(encoding);
@@
-256,6
+256,7
@@
int main(int argc, char* argv[])
}
if (result == 0 && total_conv_fails == 0) {
output(1, "Re-parsing file...\n");
}
if (result == 0 && total_conv_fails == 0) {
output(1, "Re-parsing file...\n");
+ gedcom_set_compat_handling(0);
result |= gom_parse_file(gedfilename);
}
if (result == 0) {
result |= gom_parse_file(gedfilename);
}
if (result == 0) {