Solves problem where invoking a method via osrf_http_translator
resulted in an exception thrown by FreezeThaw if any of the characters
in the message are non-ASCII *and* not in the Latin-1 character
set. Oddly, if Evergreen been originally developed in Georgia the
country, not Georgia the state, the bug would have been apparent much earlier.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_1_6@2211
9efc2488-bf62-4759-914b-
345cdb29e865
# keep trying to deliver the message until we succeed
my $socket = IO::Socket::UNIX->new( Peer => $sock );
+ binmode $socket, ':utf8';
unless($socket and $socket->connected) {
$logger->error("$app inbound: unable to connect to inbound socket $sock: $!");
my $self = shift;
my $data; my $d;
+ binmode STDIN, ':utf8';
while( $d = <STDIN> ) { $data .= $d; }
my $orig = $0;