[vorbis-dev] RC3: oggenc & iconv

Christian Weisgerber naddy at mips.inka.de
Fri Feb 8 17:20:55 PST 2002



I'm currently trying to figure out why RC3 oggenc with iconv support
will
- work, but enter replacement characters into tags instead of
  converting to UTF-8;
- dump core; or
- catch an assert();
depending on the locale settings.  (On FreeBSD, with Chuguev iconv.)

I think I'm getting a handle on the assert().  It's this one:

assertion "(!k && !ibl) || (k == (size_t)(-1) && errno == E2BIG && ibl &&
obl < 6) || (k == (size_t)(-1) && (errno == EILSEQ || errno == EINVAL) &&
ibl)" failed: file "iconvert.c", line 111

In my test case, we have a plain ASCII string with a KOI8-R locale
charset and this:

Before the first iconv() call:
* ibl = 9
* obl = utflen = 1
After the iconv() call:
* k = 0, ibl = 8, obl = 0, errno = EINVAL

I'm sitting here with the SUSv3 spec for iconv(), trying to make
sense of it all.  This is one confusing interface, but I don't think
the returned values are wrong.  Which would render the expectations
in the assert() wrong.

Opinions?


-- 
Christian "naddy" Weisgerber                          naddy at mips.inka.de

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list