Peter Mogensen wrote:
 > Uhh... HEAD won't run.
> The reason being a typo in line 31 of lib/Net/LDAP/Entry.pm:
...
> 31   retrun $entry;


anyway... after fixing that I still can't get it to work. ... probably
my fault though.

But looking at the code I have a question. The code uses:

  Encode::decode_utf8($result->{objectName}) if ('dn' !~ /$arg{raw}/);

...which raises a question:
Decode_utf8 parses the string and replaces invalid UTF-8 with \x{FFFD}.
You could argue that if you really wanted the data parsed, you would
also want some control over the CHECK argument to decode_utf8.
Else it would in many cases be just as usefull to just
Encode::_utf8_on() the string?

Peter


Reply via email to