kohaadmin@vmkopro:~/src$ cat 0001-Bufix-for-french-3M-self-checkout.patch From f1a286df0f39409e5d7d363884de6e4c8d497a74 Mon Sep 17 00:00:00 2001 From: kohaadmin Date: Wed, 29 Feb 2012 11:50:21 +0100 Subject: [PATCH] Bufix for french 3M self checkout Without this fix, the 3M self checkout don't read Koha message properly, and: * is VERY slow * fails reading 1 line on 2 The patch fixes this problem --- C4/SIP/Sip.pm | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/SIP/Sip.pm b/C4/SIP/Sip.pm index 337cc0e..e390ff1 100644 --- a/C4/SIP/Sip.pm +++ b/C4/SIP/Sip.pm @@ -229,13 +229,12 @@ sub write_msg { $msg .= sprintf('%04.4X', $cksum); } - if ($file) { $file->autoflush(1); - print $file "$msg\r"; + print $file "$msg$CRLF"; } else { STDOUT->autoflush(1); - print $msg, "\r"; + print $msg, "$CRLF"; syslog("LOG_INFO", "OUTPUT MSG: '$msg'"); } -- 1.7.2.3