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)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 13 Aug 2014 18:39:06 +0000 (14:39 -0400)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 8af35f89badacaf025226811c233f2cf44554910)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 4003f9f88470673d19e204f435fa2385f5bd3492)

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";