[X2Go-Commits] [cups-x2go] 01/07: cups-x2go: add correct :raw layer to binmode calls.

git-admin at x2go.org git-admin at x2go.org
Wed Jun 17 20:15:22 CEST 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository cups-x2go.

commit c9fbdad5366a8d6910c28039cfa64f508d7e405b
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Wed Jun 17 17:48:07 2015 +0200

    cups-x2go: add correct :raw layer to binmode calls.
---
 cups-x2go        |    7 ++++++-
 debian/changelog |    1 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/cups-x2go b/cups-x2go
index f2fe3c0..73f7c20 100755
--- a/cups-x2go
+++ b/cups-x2go
@@ -205,6 +205,10 @@ if (!$psFile)
 {
 	my ($tfh, $tempFile) = tempfile ($ps_template, TMPDIR => 1);
 	syslog('info', "Print job comes from STDIN, writing incoming job to temp file $tempFile\n");
+
+	binmode ($tfh, ":raw");
+	binmode (STDIN, ":raw");
+
 	while(<STDIN>)
 	{
 		print $tfh $_;
@@ -231,7 +235,8 @@ $ENV{TMPDIR}="/tmp";
 my ($gs_out, $gs_in, $wait_ret, $real_ret);
 my $gs_pid = open2 ($gs_out, $gs_in, $ps2pdf_cmd, @ps2pdf_args);
 
-binmode ($gs_out);
+binmode ($gs_out, ":raw");
+binmode ($pdf_fh, ":raw");
 
 close ($gs_in);
 
diff --git a/debian/changelog b/debian/changelog
index 930a86d..f4e35da 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ cups-x2go (3.0.1.3-0x2go1) UNRELEASED; urgency=low
     - cups-x2go: fix binmode() call, :raw layer is implicit.
     - cups-x2go: fix print call... Does not allow to separate parameters with
       a comma.
+    - cups-x2go: add correct :raw layer to binmode calls.
   * debian/control:
     - Add dependencies on perl-modules for core modules and ${perl:Depends}
       for perl itself.

--
Alioth's /srv/git/code.x2go.org/cups-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/cups-x2go.git


More information about the x2go-commits mailing list