/* This file is part of the Zebra server.
- Copyright (C) 1994-2009 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
return 0;
}
-int zebra_term_untrans_iconv(ZebraHandle zh, NMEM stream,
+int zebra_term_untrans_iconv(ZebraHandle zh, NMEM stream,
const char *index_type,
char **dst, const char *src)
{
char term_src[IT_MAX_WORD];
char term_dst[IT_MAX_WORD];
int r;
-
+
r = zebra_term_untrans (zh, index_type, term_src, src);
if (r)
return r;
char *outbuf = term_dst;
size_t outleft = sizeof(term_dst)-1;
size_t ret;
-
+
ret = yaz_iconv (zh->iconv_from_utf8, &inbuf, &inleft,
&outbuf, &outleft);
if (ret == (size_t)(-1))