Re! On Jan 29, 2006 at 1908 +0100, Peter Marschall appeared and said: > [...] > 1) the error goes away if "use encoding 'utf8'" is not used. > 2) the error disappears also if debug(3) is used [i.e. only asn_hexdump() > is used to display debug information and not asn_dump()]
When using the Debian packages the error persisted even with debug
turned on.
> 3) the error vanishes also with the following patch to
> Convert::ASN1
>
> --- Convert/ASN1.pm 2005-09-29 10:19:28.000000000 +0200
> +++ Convert/ASN1.pm 2006-01-29 18:04:23.000000000 +0100
> @@ -15,6 +15,8 @@
>
> BEGIN {
>
> + local $SIG{__DIE__};
> + eval { require bytes and 'bytes'->import };
> if (CHECK_UTF8) {
> require Encode;
> require utf8;
I assumed that the OpenLDAP <-> Net::LDAP communication and the internal
data processing of Net::LDAP is always done in UTF-8.
> Browsing through the changes between Convert::ASN1 0.19 and SVN revision 102
> I
> found that in SVN rev 99 committed a fix for exactly this case.
>
> Unfortunately this fix was not complete as it does not cover the [border]
> case
> of debugging using asn_dump().
>
> The patch given above fixes this case, but I do not know if it is the correct
> one for all other cases.
> I don't like it very much: it changes ASN1.pm to fix a problem that arises in
> ASN1/Debug.pm. I don't understand the internals of Convert::ASN1 enough
> to find a better one, but I hope Graham and Chris read this mail and ... ;-)))
>
> > I have really no idea what to test next or what to code differently, so
> > if you want me to run any other code please feel free to send
> > suggestions.
>
> If you want to you may try my private .deb which I have attached as well.
I just installed it on my workstation and the error disappears. The
query is processed just fine and the data gets displayed as it should
be. I am going to try the same .deb or a patch on my AMD64 workstation
in the office to see what changes on this architecture.
A big thank you for this.
Best,
René.
--
)\._.,--....,'``. Let GNU/Linux work for you while you take a nap.
/, _.. \ _\ (`._ ,. R. Pfeiffer <lynx at luchs.at> + http://web.luchs.at/
`._.-(,_..'--(,_..'`-.;.' - System administration + Consulting + Teaching -
pgprI427PDFCz.pgp
Description: PGP signature
