cleanup all encoding cruft since Koha mungles data
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 17 Mar 2009 10:59:31 +0000 (10:59 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 17 Mar 2009 10:59:31 +0000 (10:59 +0000)
bin/ldap-rewrite.pl

index db97950..dd781c8 100755 (executable)
@@ -170,8 +170,6 @@ sub run_proxy {
 }
 
 
-$ENV{LANG} = 'C'; # so we don't double-encode utf-8 if LANG is utf-8
-
 my $listenersock = IO::Socket::INET->new(
        Listen => 5,
        Proto => 'tcp',
@@ -189,9 +187,6 @@ my $targetsock = $config->{upstream_ssl}
        : IO::Socket::SSL->new( $config->{upstream_ldap} . ':ldaps')
        || die "can't open upstream socket: $!";
 
-binmode( $listenersock );
-binmode( $targetsock );
-
 run_proxy($listenersock,$targetsock);
 
 1;