From e4d42c8bf05ddaef1e8a60f1179c8b6bc19aaa9d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 10 Apr 2013 10:49:11 +0200 Subject: [PATCH] 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. --- src/marcdisp.c | 1 + 1 file changed, 1 insertion(+) 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 */ } -- 1.7.10.4