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
yaz-iconv: fix typos
[yaz-moved-to-github.git]
/
util
/
yaziconv.c
diff --git
a/util/yaziconv.c
b/util/yaziconv.c
index
e0bd124
..
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-2008 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
* See the file LICENSE for details.
*/
@@
-10,9
+10,9
@@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
-#include <ctype.h>
#include <yaz/yaz-util.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
@@
-79,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];
@@
-139,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)
@@
-197,6
+198,7
@@
int main(int argc, char **argv)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab