Bug 9288: (follow-up) use specified terminator for both input and output
authorKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Sep 2013 14:04:41 +0000 (10:04 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Sun, 20 Apr 2014 20:09:18 +0000 (20:09 +0000)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
misc/sip_cli_emulator.pl

index 708b1bb..dc8ce53 100755 (executable)
@@ -49,6 +49,9 @@ if (   $help
 
 $terminator = ( $terminator eq 'CR' ) ? $CR : $CRLF;
 
+# Set perl to expect the same record terminator it is sending
+$/ = $terminator;
+
 my ( $sec, $min, $hour, $day, $month, $year ) = localtime(time);
 $year += 1900;
 my $transaction_date = "$year$month$day    $hour$min$sec";