Thanks for your response Chris;

Chris Ridd <[EMAIL PROTECTED]> writes:

> On 7/7/03 3:23 pm, Miroslav Zubcic <[EMAIL PROTECTED]> wrote:

>> I think I found bug in Net::LDAP in the part which is doing something
>> with ASN.1 (Convert::ASN1).

> The current version of Convert::ASN1 (0.19) has some bug fixes for utf8

Where I can find Convert::ASN1 0.19? On CPAN I see only 0.17, and on
google I cannot find 0.19 ... looks like the latest version is 0.17. :-\

> support in perl >= 5.8. Either upgrade to that, or try setting your LANG
> environment variable so it doesn't include 'utf8'. (On Red Hat you can do
> this for all users in /etc/sysconfig/i18n.)

It's not Red Hat but SunOS 5.9 (but this is probably not important in
this case) and in my initial mail I have said that I *must*
convert/mangle (some, but some not) utf8 strings to ascii, and that
tr/// is not working without "use encoding 'utf8'". But _with_ utf8 I
get "Bad ASN PDU" from

/usr/local/lib/perl5/site_perl/5.8.0/Convert/ASN1/IO.pm

So I'm stuck here.

Question: is it safe to just comment out this sanity check in IO.pm?

    elsif (!$len && !$tch) {
      die "Bad ASN PDU" unless $depth;
      unless (--$depth) {
        last;
      }
    }

... or somebody must fix bug in $ldap->search in Net::LDAP?


I have used little older versions of Convert::ASN1 and Net::LDAP, but
after upgrade from CPAN to latest versions of both things are the same.


-- 
                The Network is the Filesystem

Reply via email to