X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=index%2Fzaptterm.c;h=7c83e2f5afe93a53ea4a389462cbdc632ccef7d3;hp=d917976329d2ab76f37cd36cf34fd7aa6235f253;hb=5d536c8cf5400b1e4da91061cf736a9ab53e5bd1;hpb=18e6d4befe9117cc44003fc9c1e62aac14d4e3bb diff --git a/index/zaptterm.c b/index/zaptterm.c index d917976..7c83e2f 100644 --- a/index/zaptterm.c +++ b/index/zaptterm.c @@ -1,8 +1,5 @@ -/* $Id: zaptterm.c,v 1.1 2006-09-21 08:39:14 adam Exp $ - Copyright (C) 1995-2006 - Index Data ApS - -This file is part of the Zebra server. +/* This file is part of the Zebra server. + Copyright (C) 1994-2011 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 @@ -20,6 +17,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -57,6 +57,7 @@ ZEBRA_RES zapt_term_to_utf8(ZebraHandle zh, Z_AttributesPlusTerm *zapt, 0); return ZEBRA_FAIL; } + yaz_iconv(zh->iconv_to_utf8, 0, 0, &outbuf, &outleft); *outbuf = 0; } else @@ -84,7 +85,9 @@ ZEBRA_RES zapt_term_to_utf8(ZebraHandle zh, Z_AttributesPlusTerm *zapt, /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab */ +