X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=standalone.c;fp=standalone.c;h=a4d44774438f212f8475815a2c9cc2ff9df4e4b7;hb=74fde9789d7acaa629a576298d45421953a51bb1;hp=9c8dc15d2130188daf58d18bc945fa2b93036af0;hpb=0e044d1efe3ed730e8f0bd20361b27059c6ca7d5;p=gedcom-parse.git diff --git a/standalone.c b/standalone.c index 9c8dc15..a4d4477 100644 --- a/standalone.c +++ b/standalone.c @@ -172,10 +172,11 @@ void default_cb(Gedcom_ctxt ctxt, int level, char *tag, char *raw_value, int tag_value) { char *converted = NULL; + int conv_fails; if (raw_value) - converted = convert_utf8_to_locale(raw_value); - output(0, "== %d %s (%d) %s (ctxt is %d)\n", - level, tag, tag_value, converted, (int)ctxt); + converted = convert_utf8_to_locale(raw_value, &conv_fails); + output(0, "== %d %s (%d) %s (ctxt is %d, conversion failures: %d)\n", + level, tag, tag_value, converted, (int)ctxt, conv_fails); } void subscribe_callbacks()