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
Documentation for the GEDCOM object model.
[gedcom-parse.git]
/
gedcom
/
compat.c
diff --git
a/gedcom/compat.c
b/gedcom/compat.c
index 21cac35344407b1d6d4168f8017e372b4c72d985..d4fdb9f480216801f155de5264a8513cefa75dfc 100644
(file)
--- a/
gedcom/compat.c
+++ b/
gedcom/compat.c
@@
-63,6
+63,11
@@
void gedcom_set_compat_handling(int enable_compat)
void set_compatibility(char* program)
{
void set_compatibility(char* program)
{
+ /* Reinitialize compatibility */
+ compat_at = 0;
+ default_charset = "";
+ compatibility = 0;
+
if (compat_enabled) {
if (! strncmp(program, "ftree", 6)) {
gedcom_warning(_("Enabling compatibility with 'ftree'"));
if (compat_enabled) {
if (! strncmp(program, "ftree", 6)) {
gedcom_warning(_("Enabling compatibility with 'ftree'"));
@@
-75,9
+80,6
@@
void set_compatibility(char* program)
default_charset = "ANSI";
compat_at = 1;
}
default_charset = "ANSI";
compat_at = 1;
}
- else {
- compatibility = 0;
- }
}
}
}
}