httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adelle Hartley <ade...@akemi.com.au>
Subject Re: Converting a 16-bit string to 8-bit?
Date Sat, 05 Mar 2011 01:11:20 GMT
On 4/03/2011 22:01, Ben Noordhuis wrote:
> Adelle, your code doesn't appear to be handling errors. A number of
> things can go wrong here:
>
> 1. The conversion may not be supported.
>
> 2. Partial character sequences (not an issue here since the input is
> UTF-32 but I mention it for posterity's sake), reported as
> APR_EINCOMPLETE.
>
> 3. Illegal character sequences, reported as APR_EINVAL.
>
> 4. Output buffer too short. Reported as APR_SUCCESS but with inbytes_left>  0.

Thanks for the feedback.  Is there any documentation for the apr_xlate 
functions?

Adelle.


Mime
View raw message