[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: UTF-8 support for libldap

I wrote:
>         ldap_enable_translation( ld, e, 0 );
>         val = ldap_get_values( ld, e, "audio" );
>         ldap_enable_translation( ld, e, 1 );
> (...)
> * Some library calls would need an extra "how-to-handle-charsets"
>   parameter (...) so the code above wouldn't have to do 3
>   library calls just to extract a binary attribute.

Duh.  In the case of ldap_get_values, a binary variant already exists:
ldap_get_values_len().  I must have picked that example from code which
was written before ldap_get_values_len was added to umich ldap, whenver
that was.