X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fmarcdump.c;h=adfc0151f0f2388d5bf845c63c1c08f1c05d5092;hp=c45d146366d73ef06e489d2e76ab33d7c5bae508;hb=30af0a1ebbea75c3e757eb03d3f988c61fce8511;hpb=8ceaeefe2e491935cba91f56007308be6e4996e6 diff --git a/util/marcdump.c b/util/marcdump.c index c45d146..adfc015 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -46,6 +46,7 @@ #include #include #include +#include #ifndef SEEK_SET #define SEEK_SET 0 @@ -434,7 +435,7 @@ static void dump(const char *fname, const char *from, const char *to, { cd1 = yaz_iconv_open(to, "utf-8"); if (cd1) - yaz_marc_iconv(mt, cd); + yaz_marc_iconv(mt, cd1); } r = yaz_marc_decode_buf(mt, buf, -1, &result, &len_result); @@ -522,6 +523,7 @@ int main (int argc, char **argv) #endif prog = *argv; + yaz_enable_panic_backtrace(prog); while ((r = options("i:o:C:npc:xOeXIf:t:s:l:Vv", argv, argc, &arg)) != -2) { no++;