X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fcharset-converter.cpp;fp=src%2Fcharset-converter.cpp;h=8ff11452c7d93977f9c66bd83a25895b9ace198a;hp=70c67433507e3fe5d71a0a88089adf6ac1b4ee52;hb=343901a04fab67869d432a4c93f5c6e1046ae6a5;hpb=23b5c22cb388b1419f40cb2c299fd33dbe32390a diff --git a/src/charset-converter.cpp b/src/charset-converter.cpp index 70c6743..8ff1145 100644 --- a/src/charset-converter.cpp +++ b/src/charset-converter.cpp @@ -1,4 +1,4 @@ -/* $Id: charset-converter.cpp,v 1.6 2007-03-20 07:54:27 adam Exp $ +/* $Id: charset-converter.cpp,v 1.7 2007-12-27 10:44:49 adam Exp $ Copyright (c) 1998-2006, Index Data. This file is part of the yazproxy. @@ -80,6 +80,7 @@ void Yaz_CharsetConverter::convert_type_1(char *buf_in, int len_in, { wrbuf_rewind(m_wrbuf); wrbuf_iconv_write(m_wrbuf, m_ct, buf_in, len_in); + wrbuf_iconv_reset(m_wrbuf, m_ct); *len_out = wrbuf_len(m_wrbuf); if (*len_out == 0)