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
Update doc/common
[yaz-moved-to-github.git]
/
util
/
yaziconv.c
diff --git
a/util/yaziconv.c
b/util/yaziconv.c
index
0d9d211
..
57de6e1
100644
(file)
--- a/
util/yaziconv.c
+++ b/
util/yaziconv.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2011 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-12,6
+12,7
@@
#include <string.h>
#include <yaz/yaz-util.h>
#include <string.h>
#include <yaz/yaz-util.h>
+#include <yaz/backtrace.h>
#define CHUNK_IN 64
#define CHUNK_OUT 64
#define CHUNK_IN 64
#define CHUNK_OUT 64
@@
-78,7
+79,7
@@
void convert(FILE *inf, yaz_iconv_t cd, int verbose)
return ;
}
else if (e == YAZ_ICONV_EINVAL) /* incomplete input */
return ;
}
else if (e == YAZ_ICONV_EINVAL) /* incomplete input */
- {
+ {
size_t i;
for (i = 0; i<inbytesleft; i++)
inbuf0[i] = inbuf[i];
size_t i;
for (i = 0; i<inbytesleft; i++)
inbuf0[i] = inbuf[i];
@@
-138,6
+139,7
@@
int main(int argc, char **argv)
yaz_iconv_t cd;
FILE *inf = stdin;
yaz_iconv_t cd;
FILE *inf = stdin;
+ yaz_enable_panic_backtrace(*argv);
while ((ret = options("vf:t:", argv, argc, &arg)) != -2)
{
switch (ret)
while ((ret = options("vf:t:", argv, argc, &arg)) != -2)
{
switch (ret)