[前][次][番号順一覧][スレッド一覧]

ruby-changes:40217

From: naruse <ko1@a...>
Date: Tue, 27 Oct 2015 16:34:24 +0900 (JST)
Subject: [ruby-changes:40217] naruse:r52298 (trunk): Add binmode for Tempfile to prevent EOF (0x1A)

naruse	2015-10-27 16:34:18 +0900 (Tue, 27 Oct 2015)

  New Revision: 52298

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52298

  Log:
    Add binmode for Tempfile to prevent EOF (0x1A)
    
    http://ruby-mswin.cloudapp.net/vc10-x64/ruby-trunk/log/20151023T062322Z.log.html.gz

  Modified files:
    trunk/test/net/ftp/test_ftp.rb
Index: test/net/ftp/test_ftp.rb
===================================================================
--- test/net/ftp/test_ftp.rb	(revision 52297)
+++ test/net/ftp/test_ftp.rb	(revision 52298)
@@ -796,6 +796,7 @@ class FTPTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/net/ftp/test_ftp.rb#L796
         assert_match(/\APASS /, commands.shift)
         assert_equal("TYPE I\r\n", commands.shift)
         Tempfile.create("foo", external_encoding: "ASCII-8BIT") do |f|
+          f.binmode
           buf = String.new
           res = ftp.getbinaryfile("foo", f.path) { |s|
             buf << s

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]