X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Funtrans.c;h=0e9adf1b10a65eda2cbb6db88aaabff7ee12f3b0;hb=87f0188b0b31dde5f5510a30b17a89f45384f271;hp=f17f6e2f64938ab1285558790457756c32e6af29;hpb=18e6d4befe9117cc44003fc9c1e62aac14d4e3bb;p=idzebra-moved-to-github.git diff --git a/index/untrans.c b/index/untrans.c index f17f6e2..0e9adf1 100644 --- a/index/untrans.c +++ b/index/untrans.c @@ -1,5 +1,5 @@ -/* $Id: untrans.c,v 1.1 2006-09-21 08:39:14 adam Exp $ - Copyright (C) 1995-2006 +/* $Id: untrans.c,v 1.3 2007-03-20 22:07:35 adam Exp $ + Copyright (C) 1995-2007 Index Data ApS This file is part of the Zebra server. @@ -71,7 +71,10 @@ void zebra_term_untrans_iconv(ZebraHandle zh, NMEM stream, int reg_type, if (ret == (size_t)(-1)) len = 0; else + { + yaz_iconv (zh->iconv_from_utf8, 0, 0, &outbuf, &outleft); len = outbuf - term_dst; + } *dst = nmem_malloc(stream, len + 1); if (len > 0) memcpy (*dst, term_dst, len);