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
For ICU enabled YAZ defined YAZ_HAVE_ICU instead of HAVE_ICU.
[yaz-moved-to-github.git]
/
util
/
yaziconv.c
diff --git
a/util/yaziconv.c
b/util/yaziconv.c
index
bf3b922
..
72dd075
100644
(file)
--- a/
util/yaziconv.c
+++ b/
util/yaziconv.c
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2007, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: yaziconv.c,v 1.7 2007-03-09 08:39:38 adam Exp $
+ * $Id: yaziconv.c,v 1.9 2007-05-25 16:19:46 marc Exp $
*/
#if HAVE_CONFIG_H
*/
#if HAVE_CONFIG_H
@@
-44,6
+44,11
@@
void convert (FILE *inf, yaz_iconv_t cd, int verbose)
{
if (outbuf != outbuf0)
fwrite (outbuf0, 1, outbuf - outbuf0, stdout);
{
if (outbuf != outbuf0)
fwrite (outbuf0, 1, outbuf - outbuf0, stdout);
+ outbuf = outbuf0;
+ outbytesleft = CHUNK_OUT;
+ r = yaz_iconv (cd, 0, 0, &outbuf, &outbytesleft);
+ if (outbuf != outbuf0)
+ fwrite (outbuf0, 1, outbuf - outbuf0, stdout);
break;
}
inbytesleft = r;
break;
}
inbytesleft = r;
@@
-148,7
+153,7
@@
int main (int argc, char **argv)
break;
default:
fprintf (stderr, "yaziconv: Usage\n"
break;
default:
fprintf (stderr, "yaziconv: Usage\n"
- "siconv -f encoding -t encoding [-v] [file]\n");
+ "yaziconv -f encoding -t encoding [-v] [file]\n");
exit(1);
}
}
exit(1);
}
}