/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
struct yaz_iconv_struct {
int my_errno;
int init_flag;
-#if 0
- size_t (*init_handle)(yaz_iconv_t cd, unsigned char *inbuf,
- size_t inbytesleft, size_t *no_read);
- unsigned long (*read_handle)(yaz_iconv_t cd, unsigned char *inbuf,
- size_t inbytesleft, size_t *no_read);
-#endif
size_t no_read_x;
unsigned long unget_x;
#if HAVE_ICONV_H
return 1;
if (yaz_wchar_encoder(tocode, &cd->encoder))
return 1;
+ if (yaz_danmarc_encoder(tocode, &cd->encoder))
+ return 1;
return 0;
}