Glenn Maynard writes:

> Giving "wchar_t" to iconv isn't portable, though, is it?

It is supported by glibc and GNU libiconv, and libiconv is portable.

> Hmm.  Another thing, while we're on iconv: How do you get the number of
> non-reversible conversions when -1/E2BIG is returned?  It seems that
> converting blocks into a small output buffer (eg. taking advantage of
> E2BIG) means that count is lost.

Seems so, yes. But you can do one round of conversion to see how large
you have to make your buffer, and then in the second round you are
safe from E2BIG.

Bruno

______________________________________________________________________________
Die clevere Geldreserve: der DiBa-Privatkredit. Funktioniert wie ein Dispo, 
ist aber viel gunstiger! Alle Infos: http://diba.web.de/?mc=021104

--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to