Thanks for the pointer. As far as I can tell, you do agree that
nl_langinfo(CODESET) passed as an argument to iconv_open should
work, at
least internally on each platform. Is that right? If so, I don't see
anything we can do about this in libidn (except to fix the
segmentation
fault above, but that is already done). Or is there a better way to
find out what string to pass to iconv_open for the locale charset than
using nl_langinfo(CODESET)? I have been worried about nl_langinfo not
being thread safe, and thus inappropriate for use in a library; it
is a
minor problem that I haven't been able to solve. If there is a better
approach than nl_langinfo, libidn could use it.