Issue #7278 has been updated by no6v (Nobuhiro IMAI).


???????????? yield ?????????????????????????????? ASCII-8BIT ???????????????????
each_line ?????????????????????????test/net/ 以???????????????????????????
@wbuf ?????????????????????????影??????????????????????????

diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index 9733d56..743e59b 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -322,7 +322,7 @@ module Net # :nodoc:
 
     def each_crlf_line(src)
       buffer_filling(@wbuf, src) do
-        while line = @wbuf.slice!(/\A.*(?:\n|\r\n|\r(?!\z))/n)
+        @wbuf.each_line do |line|
           yield line.chomp("\n") + "\r\n"
         end
       end


----------------------------------------
Bug #7278: 'warning: regexp match /.../n against to UTF-8 string' in net/protocol.rb
https://bugs.ruby-lang.org/issues/7278#change-32360

Author: kakutani (Shintaro KAKUTANI)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: 2.0.0dev


????????????????
UTF-8???????Rails 3.2.8 ???ActionMailer????????????????????????
'warning: regexp match /.../n against to UTF-8 string' ??警??????????????
添????????????????ASCII-8BIT???force_encoding??????????????????????????

??1????????????????????????????????????????????????????????????対?????????????????????????????????????
http://dev.ywesee.com/Yasu/20121012-create-fachinfo-chapter-exporter-job
http://d.hatena.ne.jp/benikujyaku/20111002/1317536555

????????????????????????????



-- 
http://bugs.ruby-lang.org/