-#if HAVE_ICONV_H
- if (t_unicode != (iconv_t)(-1))
- iconv_close (t_unicode);
- t_unicode = iconv_open (ucs4_native, argv[1]);
-#else
- logf (LOG_WARN, "Encoding ignored. iconv not installed");
-#endif
+ if (t_unicode != 0)
+ yaz_iconv_close (t_unicode);
+ t_unicode = yaz_iconv_open (ucs4_native, argv[1]);