#include <stdarg.h>
#include <locale.h>
#include <errno.h>
+#include <iconv.h>
#include "gedcom.h"
#include "utf8-locale.h"
int tag_value)
{
char *converted = NULL;
- int conv_fails;
+ int conv_fails = 0;
if (raw_value)
converted = convert_utf8_to_locale(raw_value, &conv_fails);
output(0, "== %d %s (%d) %s (ctxt is %d, conversion failures: %d)\n",
}
setlocale(LC_ALL, "");
+ gedcom_init();
gedcom_set_debug_level(debug_level, NULL);
gedcom_set_compat_handling(compat_enabled);
gedcom_set_error_handling(mech);