Subject: Re: code set recoding engine, V2
To: Jaromir Dolecek <dolecek@ics.muni.cz>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 11/21/1999 17:30:40
On Mon, 22 Nov 1999 00:53:13 +0100 (MET) 
 Jaromir Dolecek <dolecek@ics.muni.cz> wrote:

 > ssize_t codeset_conv __P((codeset_t *codeset, char *dst, size_t dstlen,
 > 				const void *src, size_t srclen));

 > * codeset_conv() converts an ``srclen'' array/string codes;
 >   the ``src'' pointer has to point on array of items of "right" size,
 >   for example u_int16_t for unicode and is implicitly treated as
 >   such. We can't use strong type checking, because me might want
 >   to support other-than-unicode code sets on input;
 >   the function returns length of result string or -1 if an error occurs -
 >   e.g. if the target string is not long enough to hold resulting string

Is `srclen' an absolute byte (octet) count, or a relative `code' count?  I.e.
for a src consisting of 4 unicode codes (2 octets per code, right?), is it
`4' or `8'?

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>