webgui/lib/prince.rb in tournament-3.0.2 vs webgui/lib/prince.rb in tournament-3.0.3

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: utf-8 # Prince XML Ruby interface. # http://www.princexml.com # # Library by Subimage Interactive - http://www.subimage.com # @@ -62,10 +63,10 @@ #logger.info "\n\nPRINCE XML PDF COMMAND" #logger.info path #logger.info '' # Actually call the prince command, and pass the entire data stream back. - pdf = IO.popen(path, "w+") + pdf = IO.popen(path, "wb+") pdf.puts(string) pdf.close_write output = pdf.gets(nil) pdf.close_read return output