Ruby Issue Tracking System: Issues
https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2016-03-17T15:43:43Z
Ruby Issue Tracking System
Redmine
Ruby master - Bug #12193 (Closed): ruby 2.3 on windows test-all failed
https://bugs.ruby-lang.org/issues/12193
2016-03-17T15:43:43Z
windwiny (wind winy)
windwinyubt@gmail.com
<p>Use <code>rubyinstaller</code> build ruby 2.3 on windows platform, <code>make test-all</code> occur some failed.</p>
Ruby master - Bug #11437 (Closed): IO.pipe problem on windows console
https://bugs.ruby-lang.org/issues/11437
2015-08-13T02:29:18Z
windwiny (wind winy)
windwinyubt@gmail.com
<pre><code># this code copy from Open3.popen3
def mm(cmd)
opts = {}
in_r, in_w = IO.pipe
opts[:in] = in_r
in_w.sync = true
out_r, out_w = IO.pipe
opts[:out] = out_w
pid = spawn(cmd, opts)
wait_thr = Process.detach(pid)
in_r.close
out_w.close
result = [in_w, out_r, wait_thr]
result
end
</code></pre>
<p>mm('dir')</p>
<p>use ruby 2.0 or 2.2 (32bit windows) run this method in irb or pry,<br>
return newline and input some chars, press backspace key can delete a char, but screen still show it</p>
Ruby master - Bug #9435 (Rejected): Kernel.system problem
https://bugs.ruby-lang.org/issues/9435
2014-01-21T05:29:24Z
windwiny (wind winy)
windwinyubt@gmail.com
<p>if ENV['PATH'] include double quotes, Kernel.system cann't find it.</p>
<p>windows OS, open a cmd window</p>
<pre><code>set PATH="C:\Program Files\7-Zip";%PATH%
7z -h # can run it
pry
system '7z -h' # can't find
</code></pre>
<p>and, if command include double quotes, system can't find too.</p>
<pre><code>system '"C:\Program Files\7-Zip\7z" -h' # ok
system '"C:\Program Files\7-Zip"\7z -h' # can't find
system '"C:\Program Files\7-Zip\"7z -h' # can't find
</code></pre>
Ruby master - Bug #9164 (Rejected): IO::foreach incorrect work for binary file on windows platform
https://bugs.ruby-lang.org/issues/9164
2013-11-27T15:25:12Z
windwiny (wind winy)
windwinyubt@gmail.com
<pre><code>d2 = "123\n".b + "\x1a\xe8\xba\b".b + "\n789\n".b
File.binwrite('1.txt', d2)
p File.binread('1.txt').each_line.to_a # => ["123\n", "\x1A\xE8\xBA\b\n", "789\n"]
p File.foreach('1.txt').to_a # => ["123\n"]
Encoding.default_external = Encoding::UTF_8
p File.foreach('1.txt').to_a # => ["123\n"]
Encoding.default_external = Encoding::ASCII_8BIT
p File.foreach('1.txt').to_a # => ["123\n"]
</code></pre>
<p>run above code on windows, File.foreach.to_a just return 1 row.<br>
run on mac and linux, that's correct, return 3 rows.</p>
Ruby master - Feature #9001 (Rejected): Please package better standard library
https://bugs.ruby-lang.org/issues/9001
2013-10-08T23:43:06Z
windwiny (wind winy)
windwinyubt@gmail.com
<p>Please package better alternative to the standard library</p>
<p>irb->pry,<br>
rexml->nokogiri,<br>
fiddle->ffi, ..</p>
<p>just mean include more better gem to standard install,<br>
and use rubygem upgrade.</p>
<p>Ruby is designed to make programmers happy.</p>
<p>some people agree ?</p>
Ruby master - Feature #8967 (Open): add uninclude and unextend method
https://bugs.ruby-lang.org/issues/8967
2013-09-30T14:18:34Z
windwiny (wind winy)
windwinyubt@gmail.com
<p>Can be add uninclude and unextend method to ruby core ?</p>
<p>That enable Klass include or prepend different module,<br>
make DECORATOR design pattern is easier.</p>
Ruby master - Bug #8425 (Closed): webrick show local filesystem charset bug
https://bugs.ruby-lang.org/issues/8425
2013-05-19T11:34:44Z
windwiny (wind winy)
windwinyubt@gmail.com
<p>Shell command</p>
<pre><code>ruby -run -e httpd Dir1
</code></pre>
<p>run a webrick http server, can not show no 8bit-ascii directory/file name.</p>
<p>this patch can fix this problem, can review it?</p>
<pre><code>patch file
</code></pre>
<p>or github<br>
<a href="https://github.com/windwiny/ruby/tree/webrick_fn" class="external">https://github.com/windwiny/ruby/tree/webrick_fn</a></p>
Ruby master - Bug #8219 (Rejected): ruby 2.0.0-p0 socket.recv MSG_OOB problem?
https://bugs.ruby-lang.org/issues/8219
2013-04-05T00:29:58Z
windwiny (wind winy)
windwinyubt@gmail.com
<a name="server1rb"></a>
<h2 >server1.rb<a href="#server1rb" class="wiki-anchor">¶</a></h2>
<p>require 'socket'</p>
<p>ssc = TCPServer.new '', 9989<br>
sc = ssc.accept</p>
<p>p sc.recv(1024)</p>
<p>p sc.recv(1024)</p>
<a name="ruby-200p0-has-OOB-data-not-return-until-remote-send-data-again-or-close"></a>
<h1 >ruby 2.0.0p0: has OOB data, not return until remote send data again or close<a href="#ruby-200p0-has-OOB-data-not-return-until-remote-send-data-again-or-close" class="wiki-anchor">¶</a></h1>
<p>p sc.recv(1024, Socket::MSG_OOB)</p>
<p>p sc.recv(1024, Socket::MSG_OOB | Socket::MSG_PEEK)<br>
p sc.recv(1024, Socket::MSG_OOB)<br>
p sc.recv(1024)</p>
<hr>
<a name="client1rb"></a>
<h2 >client1.rb<a href="#client1rb" class="wiki-anchor">¶</a></h2>
<p>require 'socket'</p>
<p>sc=TCPSocket.new '127.0.0.1', 9989</p>
<p>sc.send '1234', 0<br>
sleep 1.5</p>
<p>sc.send 'abcd', Socket::MSG_OOB<br>
sleep 3</p>
<p>sc.send 'EFGH', Socket::MSG_OOB<br>
sleep 1.5</p>
<hr>
<p>Use ruby 2.0.0p0 run above server1 code, output is<br>
"1234"<br>
"abc"<br>
"dH"<br>
""<br>
""<br>
"EFG"<br>
,<br>
use ruby 1.9.3p327 or python or c code, output is<br>
"1234"<br>
"abc"<br>
"d"<br>
"H"<br>
"H"<br>
"EFG"</p>
<p>Is this has a bug?</p>