From: Adam Dickmeiss Date: Wed, 10 Apr 2013 08:49:11 +0000 (+0200) Subject: Fix dup'ed identifers for MARC-8 encoding YAZ-650 X-Git-Tag: v4.2.53~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=e4d42c8bf05ddaef1e8a60f1179c8b6bc19aaa9d;p=yaz-moved-to-github.git Fix dup'ed identifers for MARC-8 encoding YAZ-650 The problem was that cdata_one_character did not fully flush the output and so that would be carried over to the "real" output. --- diff --git a/src/marcdisp.c b/src/marcdisp.c index b5ef643..ff4c97e 100644 --- a/src/marcdisp.c +++ b/src/marcdisp.c @@ -463,6 +463,7 @@ static size_t cdata_one_character(yaz_marc_t mt, const char *buf) size_t inbytesleft = i; size_t r = yaz_iconv(mt->iconv_cd, (char**) &inp, &inbytesleft, &outp, &outbytesleft); + yaz_iconv(mt->iconv_cd, 0, 0, &outp, &outbytesleft); if (r != (size_t) (-1)) return i; /* got a complete sequence */ }