projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add link to our own Libxml2/Libxslt binaries for Windows
[yaz-moved-to-github.git]
/
util
/
marcdump.c
diff --git
a/util/marcdump.c
b/util/marcdump.c
index
c45d146
..
adfc015
100644
(file)
--- a/
util/marcdump.c
+++ b/
util/marcdump.c
@@
-46,6
+46,7
@@
#include <yaz/yaz-util.h>
#include <yaz/xmalloc.h>
#include <yaz/options.h>
#include <yaz/yaz-util.h>
#include <yaz/xmalloc.h>
#include <yaz/options.h>
+#include <yaz/backtrace.h>
#ifndef SEEK_SET
#define SEEK_SET 0
#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)
{
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);
}
r = yaz_marc_decode_buf(mt, buf, -1, &result, &len_result);
@@
-522,6
+523,7
@@
int main (int argc, char **argv)
#endif
prog = *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++;
while ((r = options("i:o:C:npc:xOeXIf:t:s:l:Vv", argv, argc, &arg)) != -2)
{
no++;