Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: configure tests for iconv



Peter wrote:
> I finally got around to trying this under a couple of versions of
> Cygwin.  It compiles and links with libiconv fine.  It announces it

That probably means the configure changes are right.

> can't do charset conversion, but as far as I can find out it always did;
> probably something outside the C code needs setting up.

Have you tried with a simple character in the basic ASCII range such as
\\u0061. If that works then it may be related to however locales are
configured in Cygwin.

There's a few places in the C code where it produces that error message
so it'd be useful to establish which one applies. Could you perhaps edit
the four instances of the error message to identify which is printed.
Either that or check what the various defines such as HAVE_NL_LANGINFO
and HAVE_ICONV are set to? If HAVE_ICONV is undefined, my AC_DEFINE may
be clashing with the AC_CHECK_FUNC. That could be solved by renaming
HAVE_ICONV in the AC_DEFINE.

Does /usr/bin/printf's \u work?
Also worth checking is
  zmodload zsh/langinfo
  print $langinfo[CODESET]

Thanks

Oliver



Messages sorted by: Reverse Date, Date, Thread, Author