Project

General

Profile

Activity

From 01/14/2011 to 01/20/2011

01/20/2011

08:45 PM Bug #4297: test_time in ruby/test/psych/test_json_tree.rb makes test failure
=begin
On 20 January 2011 05:05, Motohiro KOSAKI <redmine@ruby-lang.org> wrote:
> % svn diff
> Index: test/psych/test_json_tree.rb
> ===================================================================
> --- test/psych/test_json_tree...
Eregon (Benoit Daloze)
01:06 PM Bug #4297: test_time in ruby/test/psych/test_json_tree.rb makes test failure
=begin

=end
kosaki (Motohiro KOSAKI)
01:05 PM Bug #4297 (Closed): test_time in ruby/test/psych/test_json_tree.rb makes test failure
=begin
Recently ruby trunk + linux increase one test failure.

--------------------------------------------------------------------------------
1) Failure:
test_time(Psych::TestJSONTree) [/home/kosaki/linux/ruby-svn/ruby/test/...
kosaki (Motohiro KOSAKI)
08:10 PM Feature #4299 (Closed): no warning: found = in conditional, should be ==
=begin
http://d.hatena.ne.jp/nagachika/20110119/ruby_trunk_changes_30595_30603
で知ったのですが、右辺の種類によっては「warning: found = in conditional, should be ==」が出ないことがあるようです。

% ruby-trunk -ve '!_=""'
ruby 1.9.3dev (2011-01-20 trunk 30614) [i...
znz (Kazuhiro NISHIYAMA)
06:28 PM Bug #4298: Duration of calling String#[] with the same index is strangely related to string length.
=begin
I copied&pasted wrong info about ruby's version. It's actually:

$ ruby-trunk -v
ruby 1.9.3dev (2010-09-06 trunk 29190) [x86_64-darwin10.4.0]
=end
radarek (Radosław Bułat)
06:21 PM Bug #4298 (Closed): Duration of calling String#[] with the same index is strangely related to string length.
=begin
The longer string is the slower is String#[] (for the same index > 0). See the example benchmark below:

radarek (Radosław Bułat)
03:40 PM Revision 7fd0d4a4 (git): revert unrelated fix from r30615. Sorry!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
03:38 PM Revision c940b393 (git): * configure.in: Fix rb_cv_va_args_macro was broken. We are using
-Werror=implicit-function-declaration compile option. therefore
we need a function declaration explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:35 PM Bug #4256: [BUG] Segmentation fault ruby 1.9.2p0 (2010-08-18) [i386-mingw32]
=begin
Hi all,

The issue was resolved when we uninstalled IE7 and installed IE6. We want know if there is any compatibility issues of Ruby 1.9.2 and the other installed gems, with IE7.

The same code however, is working with R...
mahendravadar (Rama Mahendravada)
03:25 PM Bug #4294: IO.popen ['"ping"', 'localhost -n 3'] fails
=begin
Hello,

In message "[ruby-core:34642] [Ruby 1.9-Bug#4294] IO.popen ['"ping"', 'localhost -n 3'] fails"
on Jan.20,2011 13:49:00, <redmine@ruby-lang.org> wrote:
> Right, the case became more obvious when we're running comma...
usa (Usaku NAKAMURA)
01:48 PM Bug #4294: IO.popen ['"ping"', 'localhost -n 3'] fails
=begin
Right, the case became more obvious when we're running commands whose path contains spaces.

In 1.8.7 IO.popen only support cmd_string, not cmd_array, anyway, the respective form IO.popen '"ping" -n 3 localhost' works, and th...
redstun (red stun)
02:36 AM Bug #4294: IO.popen ['"ping"', 'localhost -n 3'] fails
=begin
Perhaps the OP was really concerned about things not on PATH and in dirs with spaces.

FWIW, the following works for me on Win7 32-bit for MRI 1.9.2p160 and 1.9.3dev r30603 (i386-mingw32) but not JRuby 1.6.0.RC1 in --1.9 mode...
jonforums (Jon Forums)
01:57 AM Bug #4294: IO.popen ['"ping"', 'localhost -n 3'] fails
=begin
How is that a bug ? If ping is surrounded by quotes, ruby will look for an executable named "ping" with the quotes around. If ruby starts to magically remove these quotes, I'm not sure it will bring other unwanted side-effect. Bu...
zimbatm (zimba tm)
12:54 AM Bug #4294 (Closed): IO.popen ['"ping"', 'localhost -n 3'] fails
=begin
>> RUBY_VERSION
=> "1.9.2"
>> RUBY_PLATFORM
=> "i386-mingw32"
>> IO.popen ['"ping"', 'localhost -n 3']
Errno::EINVAL: Invalid argument - "ping"
from (irb):6:in `popen'
from (irb):6
from d:...
redstun (red stun)
03:00 PM Revision 3c1b996a (git): * 2011-01-21
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:59 PM Revision 6bc19376 (git): * node.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:34 PM Revision d41d2f26 (git): * configure.in: Add '#include <stdlib.h>' to
rb_cv_localtime_overflow test too. It's reported by Tomoyuki
Chikanaga. Thanks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
01:52 PM Bug #4287: test_europe_lisbon(TestTimeTZ) Failure
=begin
> いつもありがとうございます。Linuxとのことなのでこちらでコミットさせていただきました。
> ところで、Chikanaga がコミット権を取得して自分でチェックインするのがみんなが幸せに

Chikanaga-san が。

英語と日本語と行ったり来たりしてると言葉が無茶苦茶になりますね。反省
=end
kosaki (Motohiro KOSAKI)
12:37 PM Bug #4287 (Closed): test_europe_lisbon(TestTimeTZ) Failure
=begin
This issue was solved with changeset r30612.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

----
* configure.in: Add stdlib.h inclusion into rb_cv_nega...
kosaki (Motohiro KOSAKI)
12:30 PM Bug #4287: test_europe_lisbon(TestTimeTZ) Failure
=begin
いつもありがとうございます。Linuxとのことなのでこちらでコミットさせていただきました。
ところで、Chikanaga がコミット権を取得して自分でチェックインするのがみんなが幸せになれると
思うですが、どうでしょうか。
=end
kosaki (Motohiro KOSAKI)
11:56 AM Bug #4287 (Assigned): test_europe_lisbon(TestTimeTZ) Failure
=begin

=end
naruse (Yui NARUSE)
01:02 PM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
Hi,

2011/1/20 Charles Oliver Nutter <headius@headius.com>:
> So I repeat: JRuby implements kill and raise using a mechanism similar
> to cancellation points, and those points occur at roughly the same
> places during execut...
mame (Yusuke Endoh)
06:58 AM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
On Wed, Jan 19, 2011 at 4:32 AM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
> I guess that you misunderstand cancellation points.  They do not mean
> context-switch boundaries.

I think you misunderstood me. I know what cancellatio...
headius (Charles Nutter)
09:16 AM Feature #4264: General type coercion protocol for Ruby
=begin
Em 19-01-2011 19:53, Charles Oliver Nutter escreveu:
> On Wed, Jan 19, 2011 at 5:54 AM, Rodrigo Rosenfeld Rosas
> <rr.rosas@gmail.com> wrote:
>> I like the cast_to/cast_from names and I guess it avoids conflict with most
>...
rosenfeld (Rodrigo Rosenfeld Rosas)
06:57 AM Feature #4264: General type coercion protocol for Ruby
=begin
On Wed, Jan 19, 2011 at 5:54 AM, Rodrigo Rosenfeld Rosas
<rr.rosas@gmail.com> wrote:
> I like the cast_to/cast_from names and I guess it avoids conflict with most
> libraries.

They're not bad, but casting to me means someth...
headius (Charles Nutter)
08:13 AM Feature #4288: Allow invoking arbitrary method names with foo."something" syntax
=begin
On Wed, Jan 19, 2011 at 8:53 AM, Nikolai Weibull <now@bitwi.se> wrote:
> And, as demonstrated, isn’t #send good enough?

* It's longer :)
* It defeats optimization, since you have to bounce through a "send"
call to get to th...
headius (Charles Nutter)
08:13 AM Feature #4288: Allow invoking arbitrary method names with foo."something" syntax
=begin
On Wed, Jan 19, 2011 at 2:58 PM, Gary Wright <gwtmp01@mac.com> wrote:
> Maybe I'm crazy, but could I suggest something a little more general?
>
>   foo.{expression}(arg1)
>
> to have the same semantics as
>
>  foo.send(exp...
headius (Charles Nutter)
06:23 AM Feature #4288: Allow invoking arbitrary method names with foo."something" syntax
=begin
On Wed, Jan 19, 2011 at 21:58, Gary Wright <gwtmp01@mac.com> wrote:

> On Jan 18, 2011, at 12:51 AM, Charles Nutter wrote:
>> For non-standard or arbitrary method names, it would be nice to have a way to invoke them directly t...
now (Nikolai Weibull)
08:04 AM Revision cffda96b (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:18 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
More comments:

* On JVM, you can only specify a ReferenceQueue to the constructor of a Reference. You cannot change or add queues on already-created references. JRuby would not be able to support adding new reference queues ...
headius (Charles Nutter)
07:02 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
FYI, on the JVM it is not possible to use an arbitrary collection for reference enqueuing, and I think there's a good reason for it: calling back into user code while enqueuing a reference is probably not a good idea.

The JV...
headius (Charles Nutter)
07:13 AM Revision 74535bd6 (git): * README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
name of a source file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
04:51 AM Bug #3967: rdoc generates bad HTML output for '...' in parameter list, call-seq: with multiple values
=begin
Back-ref: #4149 can be resolved once this is fixed.
=end
meta (mathew murphy)
03:27 AM Revision 1a3950e2 (git): * configure.in: Add stdlib.h inclusion into rb_cv_negative_time_t
test becuase it's required for exit(3). The patch is
created by Tomoyuki Chikanaga. [Bug #4287] [ruby-dev:43060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:41 AM Revision a9f76259 (git): * test/webrick/utils.rb (TestWEBrick::RubyBin): test CGI does not need
to load rubygems. if it activated, ruby raises LoadError about
rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:20 AM Revision 74b0a7a0 (git): * ext/psych/lib/psych/visitors/json_tree.rb: Fix JSON emit for
DateTime and Time classes.
* test/psych/test_json_tree.rb: test for JSON emit
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)

01/19/2011

11:53 PM Feature #4288: Allow invoking arbitrary method names with foo."something" syntax
=begin
On Wed, Jan 19, 2011 at 14:56, Austin Ziegler <halostatue@gmail.com> wrote:
> On Tue, Jan 18, 2011 at 12:51 AM, Charles Nutter <redmine@ruby-lang.org> wrote:

>> This syntax would make it easier to integrate with other languag...
now (Nikolai Weibull)
11:13 PM Feature #4288: Allow invoking arbitrary method names with foo."something" syntax
=begin
On Tue, Jan 18, 2011 at 12:51 AM, Charles Nutter <redmine@ruby-lang.org> wrote:
> This is one Groovy feature I tend to like.

[…]

> This syntax would make it easier to integrate with other languages that have different
> n...
austin (Austin Ziegler)
03:45 AM Feature #4288 (Assigned): Allow invoking arbitrary method names with foo."something" syntax
=begin

=end
naruse (Yui NARUSE)
11:05 PM Revision a17cdfdd (git): * ext/psych/lib/psych/coder.rb (represent_object): arbitrary objects
may be passed to the Psych::Coder object.
* ext/psych/lib/psych/visitors/yaml_tree.rb: support for visiting
arbitrary objects set on the coder.
* test/psych/test_coder.rb: supporting test case.
git-svn-id: svn+ssh://ci.ruby-lang.org/r...
tenderlovemaking (Aaron Patterson)
10:42 PM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Progress:

* Implementation of reference queue core protocol in C. Works with any object that respond_to?(:push).
* Nasty HACKS due to MRI GC clobbering of RBASIC(obj)->flags to handle deferred free lists. Would love to u...
kstephens (Kurt Stephens)
01:33 PM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Progress:

* Prototype for C SoftReference as requested by Brian.
* Refactored code to use a rb_reference data structure.

https://github.com/kstephens/ruby/commit/c5ab0bf789089d08ddc549d5d9950addeeb41943
=end
kstephens (Kurt Stephens)
06:54 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
FWIW, "ref" is the namespace Java uses (java.lang.ref.WeakReference). Since Ruby's namespaces are shorter, I'd almost prefer Reference::WeakReference, but I'll abstain from the naming discussion.
=end
headius (Charles Nutter)
03:26 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Progress:

* Moved weakref.c into ext/weak_reference/weak_reference.c via a simple gc_api.c callback manager. Class is now named WeakReference.
* Suggestions/comments on gc_api.c and its semantics are greatly appreciated. F...
kstephens (Kurt Stephens)
09:23 PM Revision 64847a9c (git): Importing rubygems @ c2d4131: Deal with platforms that have DLEXT2 == nil. Fixes RF#28867
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
09:03 PM Revision df2762fb (git): * 2011-01-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
09:03 PM Revision 63d5d7f5 (git): * method.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:55 PM Feature #4264: General type coercion protocol for Ruby
=begin
On 19-01-2011 08:05, mathew wrote:
> On Tue, Jan 11, 2011 at 10:26, Charles Nutter<redmine@ruby-lang.org> wrote:
>> Issue #4264 has been updated by Charles Nutter.
>>
>>
>> I like #to better as well, but isn't it too gene...
rosenfeld (Rodrigo Rosenfeld Rosas)
07:06 PM Feature #4264: General type coercion protocol for Ruby
=begin
On Tue, Jan 11, 2011 at 10:26, Charles Nutter <redmine@ruby-lang.org> wrote:
> Issue #4264 has been updated by Charles Nutter.
>
>
> I like #to better as well, but isn't it too generic a name, sure to conflict with libraries
...
meta (mathew murphy)
07:34 PM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
Hi,

2011/1/19 Charles Oliver Nutter <headius@headius.com>:
> JRuby implements Thread#raise and #kill using exactly this mechanism.
> On boundaries roughly equivalent to MRI 1.8's thread context switches,
> we ping thread st...
mame (Yusuke Endoh)
03:21 PM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
On Tue, Jan 18, 2011 at 10:00 PM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
> This is not just a problem of Thread#raise.  Asynchronous signals
> (such as Interrupt caused by Ctrl+C) have the same problem.
> Of course, we cannot re...
headius (Charles Nutter)
01:13 PM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
Hi,

2011/1/19 Charles Nutter <redmine@ruby-lang.org>:
> I tried to patch this many times, and it's very difficult. The problem here is that kill is inherently broken in the presence of an ensure block. I've discussed this on ...
mame (Yusuke Endoh)
06:44 AM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
We also have a "load test" for Timeout here: https://github.com/jruby/jruby/blob/master/test/load/load_timeout.rb

This should run to completion,only ever printing "ok" or "timeout". Instead, all versions of MRI I tested will...
headius (Charles Nutter)
06:37 AM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
I tried to patch this many times, and it's very difficult. The problem here is that kill is inherently broken in the presence of an ensure block. I've discussed this on ruby-core emails in the past and on my blog here: http://blo...
headius (Charles Nutter)
01:00 PM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Hi,

2011/1/19 Charles Nutter <redmine@ruby-lang.org>:
> I tried to patch this many times, and it's very difficult. The problem here is that kill is inherently broken in the presence of an ensure block. I've discussed this on ...
mame (Yusuke Endoh)
06:49 AM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
It is not possible to make cross-thread exception-raising safe with current Ruby semantics.

See the discussion on my blog post here: http://blog.headius.com/2008/02/rubys-threadraise-threadkill-timeoutrb.html

No matter ...
headius (Charles Nutter)
02:25 AM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Actually, protecting from async exceptions in the ensure block would
be mostly backward-compatible. It means that while a thread is in that
part of the code, no other thread would be running. Only code that
will break, would b...
zimbatm (zimba tm)
01:54 AM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
2011/1/18 Yusuke ENDOH <mame@tsg.ne.jp>:
> Basically agreed, but what is needed actually?

I think that ensure blocks should protect us from async exceptions.
They're here to make sure some part of a code is executed, that sh...
zimbatm (zimba tm)
12:22 PM Bug #4238 (Closed): GC.stress 下で OptionParser で設定のない引数をパースさせると core
=begin
直ったとのことなので代理コミットしときました。Chikanagaさんは早くまつもとさんに言ってコミット権をもらうべきだと思います。
=end
kosaki (Motohiro KOSAKI)
10:21 AM Bug #4238: GC.stress 下で OptionParser で設定のない引数をパースさせると core
=begin
note-2 のパッチで私のほうでも SEGV が起きなくなりました。
=end
metanest (Makoto Kishimoto)
08:40 AM Revision 0d672545 (git): * 2011-01-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:40 AM Revision 896e7a06 (git): * win32/win32.c (init_stdhandle): backport mistake of r29382.
some code are needless in ruby 1.8.
[ruby-core:34579]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
04:17 AM Revision 4993a1a8 (git): Finish removing code, (fixes sources command test).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
03:41 AM Bug #4291: rb_time_new with negative values (pre-epoch dates) on Windows
=begin
My previous comment is not accurate and enough helpful.

rb_time_new's prototype is VALUE rb_time_new(time_t sec, long usec).
so this is depends on sizeof(time_t).
mingw32's time_t seems 32bit.
This means the year 2038 ...
naruse (Yui NARUSE)
02:34 AM Bug #4291: rb_time_new with negative values (pre-epoch dates) on Windows
=begin
Shouldn't we use 64bit on all platforms instead ?
=end
zimbatm (zimba tm)
02:23 AM Bug #4291 (Rejected): rb_time_new with negative values (pre-epoch dates) on Windows
=begin
-11676096000 exceeds 32bit long.
On i386-mingw32, long is 32bit (on mswin32 long is of course 32bit, and mswin64 is also 32bit because mswin64 is LLP64)

"Other platforms"'s long seem 64bit.
=end
naruse (Yui NARUSE)
01:16 AM Bug #4291 (Rejected): rb_time_new with negative values (pre-epoch dates) on Windows
=begin
rb_time_new does not handle negative values (and thus pre-epoch dates) on windows. It seems like it should given that Time.at does.

ruby 1.9.2p136 (2010-12-25) [i386-mingw32]

Pure ruby does work:
irb(main):005:0> sec ...
banker (Kyle Banker)
03:33 AM Revision b7dd8d07 (git): Always enable rubygems/custom_require
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
03:27 AM Bug #4290 (Closed): !_=%w~ dumps core
=begin
This issue was solved with changeset r30597.
Yusuke, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

----
* parse.y: avoid NULL reference. [ruby-dev:43067]
=end
mame (Yusuke Endoh)
03:21 AM Revision 6d6fe7fe (git): * proc.c (proc_call): Add gc guard to avoid segfault. The fix
is created by Tomoyuki Chikanaga. [Bug #4238][ruby-dev:42963]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
03:09 AM Revision 84e892f8 (git): Remove require of deleted file in RubyGems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e drbrain (Eric Hodel)
02:42 AM Bug #4292: Type of rdoc in string.c
=begin
I apologize, I meant typo.
=end
dre3k (Andrei Kulakov)
02:32 AM Bug #4292 (Closed): Type of rdoc in string.c
=begin
--- string.c (revision 30594)
+++ string.c (working copy)
@@ -2577,7 +2577,7 @@
* against <i>str</i>,and returns the position the match starts, or
*
dre3k (Andrei Kulakov)
12:08 AM Revision e798ccba (git): Import rubygems 1.5.0 (release candidate)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis

01/18/2011

11:30 PM Bug #4290 (Closed): !_=%w~ dumps core
=begin
遠藤です。

以下で SEGV します。

$ ./miniruby -e '!_=%w~'
-e:1: unterminated string meets end of file
./miniruby: [BUG] Segmentation fault
ruby 1.9.3dev (2011-01-18 trunk 30590) [i686-linux]

条件式の代入文の値に壊れた %w を置くと起...
mame (Yusuke Endoh)
11:04 PM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Hi,

2011/1/18 Motohiro KOSAKI <redmine@ruby-lang.org>:
> Endoh-san, Grr, my fault. I thought Thread.join call pthread_join, but it doesn't.

I thought so :-)


> But generically, Asynchrounous exception during OS resourc...
mame (Yusuke Endoh)
02:05 PM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Endoh-san, Grr, my fault. I thought Thread.join call pthread_join, but it doesn't. So right you are, thread variable leak doesn't cause serious error.
But generically, Asynchrounous exception during OS resource handler class co...
kosaki (Motohiro KOSAKI)
02:36 AM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Why not use a mutex? Too big a performance hit?
=end
mwaechter (Matthias Wächter)
02:36 AM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Why not use a mutex? Too big a performance hit?
=end
mwaechter (Matthias Wächter)
10:38 PM Revision d26fb035 (git): Reverting nobu's rubygems patch. It needs: 1) to have a test, 2) to be UTF8, and 3) to work on 1.8 (see Gem.read_binary). (It should also be submitted to the rubygems repo or tracker)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
10:10 PM Bug #4238: GC.stress 下で OptionParser で設定のない引数をパースさせると core
=begin
以下のように proc_call() に GC 除けを追加することで、わたしの環境では OptionParser を使った例も、
縮小版も SEGV が起きなくなりました(ruby 1.9.3dev (2011-01-18 trunk 30590) [i686-linux], gcc-4.3.3 optflags=-O3)。
いかがでしょうか。

diff --git a/proc.c b/proc.c
index 9ecf626.....
nagachika (Tomoyuki Chikanaga)
07:23 PM Bug #4289 (Closed): Timeouts in threads cause SEGV
=begin
Derived from [Bug#4266]

Running deadlock_test.rb in [Bug#4266] on trunk makes segfault. git bisect indicate
first bad commit is below.

---------------------------------------------------------------------------
com...
kosaki (Motohiro KOSAKI)
06:37 PM Feature #4222: Irb tab completion support for the valid (but rare) obj::method invocation syntax
=begin
けいじゅ@いしつかです.

In [ruby-dev:43049] the message: "[ruby-dev:43049] Re: Fwd:
[ruby-core:33987] [Ruby 1.9-Feature#4222][Open] Irb tab completion
support for the valid (but rare) obj::method invocation syntax", on
Jan/17 13:27(JS...
keiju (Keiju Ishitsuka)
06:17 PM Revision a525f4d5 (git): * parse.y: avoid NULL reference. [ruby-dev:43067]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e mame (Yusuke Endoh)
05:56 PM Revision c7ec5b5c (git): * 2011-01-19
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:56 PM Revision b680cd7d (git): * vsnprintf.c (cvt): set first byte of buf to NUL for the case when
no bytes are written to the buf. [ruby-dev:43062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:14 PM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
>|Is this still correct?
>
>Yes, just because no one was willing to take over.

Oh, sad. Unfortunately I can't take it over too because my skill is not enough.
However, I plan to watch thread and timeout related bug rep...
kosaki (Motohiro KOSAKI)
04:58 PM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
Hi,

I plan to commit mutex-synchronize-use-c-implementation.patch at this weekend. So if anyone have objection, please let me know soon.
=end
kosaki (Motohiro KOSAKI)
02:50 PM Feature #4288 (Closed): Allow invoking arbitrary method names with foo."something" syntax
=begin
This is one Groovy feature I tend to like.

For non-standard or arbitrary method names, it would be nice to have a way to invoke them directly that doesn't require the parser to be made more complex nor require an intermedia...
headius (Charles Nutter)
02:27 PM Bug #4287: test_europe_lisbon(TestTimeTZ) Failure
=begin
このテストについては configure.in を以下のように修正すると成功するようになりました。

Index: configure.in
===================================================================
--- configure.in (revision 30590)
+++ configure.in (working copy)
...
nagachika (Tomoyuki Chikanaga)
02:09 PM Bug #4287 (Closed): test_europe_lisbon(TestTimeTZ) Failure
=begin
先日(r30550 以降)から Linux 上で make test-all の faiure が 1つ増えています。

1) Failure:
test_europe_lisbon(TestTimeTZ) [/opt/ruby-trunk/src/ruby/test/ruby/test_time_tz.rb:140]:
<"LMT"> expected but was
<"CET">.

少し gdb で追いかけてみたと...
nagachika (Tomoyuki Chikanaga)
02:05 PM Revision 0858cbf3 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:05 PM Revision 196833eb (git): * gc.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:34 AM Revision aa3cb74b (git): * lib/irb/comletion.rb: Irb tab completion support for XX::method forms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e keiju (Keiju Ishitsuka)
06:11 AM Revision 9ffaa7e9 (git): * lib/logger.rb: added RDoc document for logging message escape
by Hal Brodigan. See #3869
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Hiroshi Nakamura
02:57 AM Bug #4244 (Closed): Psych.to_json generate incorrect JSON
=begin
This issue was solved with changeset r30587.
Tomoyuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

----
* ext/psych/lib/psych/visitors/json_tree.rb (visit_Str...
Anonymous

01/17/2011

11:43 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
こんにちは、なかむら(う)です。

In message "[ruby-dev:43056] Re: [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS"
on Jan.17,2011 20:01:21, <kosaki.motohiro@jp.fujitsu.com> wrote:
> 1点気になるのは非互換なんですが、「ぎゃっ...
usa (Usaku NAKAMURA)
10:54 PM Revision c8e22ee1 (git): * eval_intern.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:10 PM Bug #4285: Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
Hi,

2011/1/17 Motohiro KOSAKI <redmine@ruby-lang.org>:
>  CPU0(thread x)                     CPU1(thread y)         remark
> ---------------------------------------------------------------------------
>  enter begin block
...
mame (Yusuke Endoh)
04:11 PM Bug #4285 (Closed): Ruby don't have asynchrounous exception safe syntax and It should have.
=begin
This issue was discovered during [Bug#4266] discussion.
Current timeout is racy.

Now, timeout module has following code.
-------------------------------------------------------------------------------
def timeout()
...
kosaki (Motohiro KOSAKI)
09:49 PM Revision f8cf213b (git): * lib/rubygems/source_index.rb (Gem#load_specification): read in
binary mode to get rid of failures caused by mismatch between
default internal encoding and encoding comments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:44 PM Revision 0b38e9bc (git): * ext/psych/lib/psych/parser.rb (Mark): Adding a class to wrap
marker information
* ext/psych/parser.c (mark): Add a method to return the mark object
for the parser
* test/psych/test_parser.rb: tests for the Mark class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30588 b2dd03c8-39d4-4d8f-98...
tenderlovemaking (Aaron Patterson)
05:48 PM Revision eacee9d9 (git): * ext/psych/lib/psych/visitors/json_tree.rb (visit_String): JSON
strings should be dumped with double quotes. [ruby-core:34186]
* test/psych/test_json_tree.rb: test for double quotes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
05:00 PM Revision 76fe9e89 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:50 PM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
Hi,

In message "Re: [ruby-core:34535] [Ruby 1.9-Bug#4283] Timeout.timeout may cause application exit unintetionally"
on Mon, 17 Jan 2011 13:57:43 +0900, Motohiro KOSAKI <redmine@ruby-lang.org> writes:

|Module maintaine...
matz (Yukihiro Matsumoto)
01:57 PM Bug #4283: Timeout.timeout may cause application exit unintetionally
=begin
Module maintainers list(http://redmine.ruby-lang.org/wiki/8/Maintainers) says

lib/timeout.rb
Yukihiro Matsumoto (matz)


Is this still correct?
=end
kosaki (Motohiro KOSAKI)
01:53 PM Bug #4283 (Closed): Timeout.timeout may cause application exit unintetionally
=begin
This issue was discovered during [Bug#4266] discussion.
Current timeout is racy.

Now, timeout module has following code.
-------------------------------------------------------------------------------
def timeout()
...
kosaki (Motohiro KOSAKI)
04:05 PM Bug #4284 (Closed): Timeout.timeout may cause application exit unintetionally, again
=begin
ruby-dev is no good place for this discussion. So, I'll close this ticket and reopen at ruby-core.

I'm sorry.
=end
kosaki (Motohiro KOSAKI)
02:44 PM Bug #4284 (Closed): Timeout.timeout may cause application exit unintetionally, again
=begin
This issue was discovered during [Bug#4266] discussion.
Current timeout is racy.

Now, timeout module has following code.
-------------------------------------------------------------------------------
def timeout()
...
kosaki (Motohiro KOSAKI)
04:02 PM Revision 5dfd9b38 (git): * 2011-01-18
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:02 PM Revision 9f21d18b (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:37 PM Revision 355c3a25 (git): * array.c (rb_ary_times): less MEMCPY calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:54 PM Revision 099f52d7 (git): * debug.h: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
01:27 PM Feature #4222: Irb tab completion support for the valid (but rare) obj::method invocation syntax
=begin
けいじゅ@いしつかです.

Yugui <yugui@yugui.jp> wrote:

> 石塚さん、

どもです.

> [ruby-core:33987]の件、現状が意図した仕様という訳でないならばマージ
> しようかと思いますが、どうでしょうか。

これで良いような気もしますが, ちょっと微妙なのでもうちょっと待ってくだ
さい. :: と . って微妙に振る舞いが違うようなんですよねぇ...


__
------...
keiju (Keiju Ishitsuka)
12:40 PM Revision 6c887c51 (git): * 2011-01-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:40 PM Revision 8561ae19 (git): * ruby.c (process_options): revert r30549.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

01/16/2011

11:15 PM Bug #3869: Logger#log does not handle or escape new-line characters.
=begin
Hi,

2011/1/16 Hal Brodigan <redmine@ruby-lang.org>:
> Issue #3869 has been updated by Hal Brodigan.
>
> NaHi-san, here is the developer warning message:
>
>    **Note**: Logger does not escape or sanitize any messages pas...
kosaki (Motohiro KOSAKI)
09:17 PM Bug #3869: Logger#log does not handle or escape new-line characters.
=begin
NaHi-san, here is the developer warning message:

**Note**: Logger does not escape or sanitize any messages passed to it. Developers should be aware of when potentially malicious data (user-input) is passed to Logger, and...
postmodern (Hal Brodigan)
08:56 PM Bug #3869: Logger#log does not handle or escape new-line characters.
=begin
This is a delightful increase in bug-tracker activity. :)

NaHi-san, I was unaware that Logger was designed for Diagnostic logging. I recently used Logger in some backend Ruby scripts to collect status/performance-metrics. Ob...
postmodern (Hal Brodigan)
10:25 PM Feature #4222: Irb tab completion support for the valid (but rare) obj::method invocation syntax
=begin
石塚さん、

[ruby-core:33987]の件、現状が意図した仕様という訳でないならばマージしようかと思いますが、どうでしょうか。


---------- Forwarded message ----------
From: Abinoam P. Marques Jr. <redmine@ruby-lang.org>
Date: Wed, Dec 29, 2010 at 1:10 PM
Subject: [ruby-core:33...
yugui (Yuki Sonoda)
09:25 PM Feature #4257: switch_hitter - an acceleration of date library
=begin
i've integrated both.
=end
tadf (tadayoshi funaba)
01:38 PM Bug #4282: Range#map inconsistency with blocks like {...} and do...end
=begin
(11/01/16 0:27), Andrei Kulakov wrote:
> I got that, but one thing: how exactly should I explicitly put parentheses around my expression?
>
> Doing so:
>
> p ((1..2).map do |i|
> i
> end)
>
> yields syntax errors:
...
nobu (Nobuyoshi Nakada)
12:27 AM Bug #4282: Range#map inconsistency with blocks like {...} and do...end
=begin
I got that, but one thing: how exactly should I explicitly put parentheses around my expression?

Doing so:

p ((1..2).map do |i|
i
end)

yields syntax errors:

issue.rb:1: syntax error, unexpected keyword_d...
dre3k (Andrei Kulakov)
01:18 PM Revision 03b34465 (git): * too/rbinstall.rb (install?(:ext, :comm, :gem)): no longer
installs no-versioned gempsecs. [ruby-core:34011]
Patch by Luis Lavena.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:35 PM Revision 97ee61ab (git): merges r30551 from trunk into ruby_1_9_2.
--
* test/net/smtp/test_ssl_socket.rb: fix dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:35 PM Revision 457a6fda (git): merges r30544 from trunk into ruby_1_9_2.
--
* test/net/imap/test_imap.rb: call neither logout nor disconnect
unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30577 b2dd03c8-39d4-4d8f-98ff-823fe6...
yugui (Yuki Sonoda)
12:35 PM Revision 8de1ee21 (git): merges r30543 from trunk into ruby_1_9_2.
--
* lib/net/imap.rb: use bytesize for binary strings.
patched by Yoshimasa Niwa. [ruby-core:34222]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:35 PM Revision c303d383 (git): merges r30540 and r30541 from trunk into ruby_1_9_2.
--
* ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in
gzip's header is the size of uncompressed input data modulo 2^32.
[ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt
--
The cast must use uint32_t. [ruby-core:34481...
yugui (Yuki Sonoda)
12:35 PM Revision 849e45de (git): merges r30536 from trunk into ruby_1_9_2.
--
* io.c (argf_next_argv): go advance when the next file cannot be
read. [ruby-core:34446]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30574 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:35 PM Revision 161fde4a (git): merges r30525 from trunk into ruby_1_9_2.
--
* io.c (rb_f_syscall): Add 64bit Linux support. Some syscall takes
long type arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:35 PM Revision 54d8811c (git): merges r30526 and r30527 from trunk into ruby_1_9_2.
--
* io.c (rb_f_syscall): Some syscall return unsigned or pointer value.
Therefore we should only check the result is -1 or not. [ruby-core:34062]
--
* io.c (rb_f_syscall): Add warning messages. [ruby-core:34062...
yugui (Yuki Sonoda)
12:35 PM Revision 62941003 (git): merges r30520 from trunk into ruby_1_9_2.
--
* lib/net/http.rb (Net::HTTP#connect): makes it timeout during
SSL handshake too. [ruby-core:34203]
Patch by Marc Slemko.
* test/net/http/test_http.rb (TestNetHTTP_v1_2#test_timeout_during_HTTP_session):
test for [ruby-core:342...
yugui (Yuki Sonoda)
12:35 PM Revision 829779e2 (git): merges r30499 from trunk into ruby_1_9_2.
--
* io.c (Kernel.#syscall): implemented on LP64/LLP64 environments too.
also uses __syscall if available for *BSD on 64bit architecture.
[ruby-core:34062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30570 b2dd03...
yugui (Yuki Sonoda)
12:35 PM Revision 9c2c4f50 (git): merges r30496 and r30519 from trunk into ruby_1_9_2.
--
* ext/readline/readline.c: apply a patch from Nobuyoshi Nakada.
fixed #3616 [ruby-core:31484] IRB + readline incorrectly counts
non-printing characters in prompt
--
* ext/readline/extconf.rb: new checks for RL_PROMPT_START_IGNORE
...
yugui (Yuki Sonoda)
12:35 PM Revision 357bdaeb (git): merges r30484 from trunk into ruby_1_9_2.
--
* misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlight
regexp after open bracket. [ruby-core:34183]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:34 PM Revision 52f41672 (git): merges r30483 from trunk into ruby_1_9_2.
--
* bignum.c (bigmul1_karatsuba): avoid overflow that make assertion
fail in certain case. this patch is contributed from Ray Chason
<chasonr at gmail.com> in personal communication.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/bra...
yugui (Yuki Sonoda)
12:34 PM Revision d97f1d3b (git): merges r30475 from trunk into ruby_1_9_2.
--
* ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tags
should not be included in JSON mapping
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:34 PM Revision e94bc257 (git): merges r30467 from trunk into ruby_1_9_2.
--
* ext/stringio/stringio.c (get_strio, strio_set_string)
(strio_reopen): check if frozen. [ruby-core:33648]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:34 PM Revision b5d29771 (git): merges r30452 from trunk into ruby_1_9_2.
--
* lib/net/http.rb (Net::HTTP#get): A header hash given should not
be modified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
12:34 PM Revision e58b0f52 (git): merges r30448 and r30498 from trunk into ruby_1_9_2.
--
* lib/irb/locale.rb (IRB::Locale#search_file): make it possible
to load a localization from a gem.
(IRB::Locale#lc_path): obsoleted because of the change of #search_file
(IRB::Locale#each_localized_path): new private method, ba...
yugui (Yuki Sonoda)
12:34 PM Revision 67cabb2f (git): merges r30435 from trunk into ruby_1_9_2.
--
* vsnprintf.c (BSD__uqtoa): Fix overflow when long != quad_t.
patched by Peter Weldon <peter.weldon AT null.net>
[ruby-core:33985]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30562 b2dd03c8-39d4-4d8f-98ff-823f...
yugui (Yuki Sonoda)
11:56 AM Revision 1d3a253e (git): * 2011-01-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:56 AM Revision 4f1894a0 (git): * vsnprintf.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
06:30 AM Revision 66fd4103 (git): merges r30407 and r30450 from trunk into ruby_1_9_2.
--
* ext/fiddle/extconf.rb: check for windows.h while building fiddle.
Thanks Jon Forums! [ruby-core:33923]
--
* Use _WIN32 rather than checking for windows.h. Thanks Jon Forums!
[ruby-core:33977]
git-svn-id: svn+ssh://ci.ruby-lang...
yugui (Yuki Sonoda)
06:30 AM Revision 27f15990 (git): merges r30381 from trunk into ruby_1_9_2.
--
* parse.y (stmt): missing ripper rule. i.e., `a::B ||= c 1'.
http://twitter.com/#!/wannabe53/status/18797576396472321
http://twitter.com/#!/wannabe53/status/18798416150663168
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/...
yugui (Yuki Sonoda)
06:30 AM Revision 85e99f1d (git): merges r30377 from trunk into ruby_1_9_2.
--
* ext/dl/win32/registry.rb: Corrected RegCreateKeyExA signature.
Patch by Rafal Michalski [ruby-core:33874] [Ruby 1.9-Bug#4203]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
06:30 AM Revision 60ae3101 (git): merges r30351 from trunk into ruby_1_9_2.
--
* test/csv/test_encodings.rb (TestEncodings#setup): fix evil test
suite writing to the source directory.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
06:30 AM Revision 3143c6d3 (git): merges r30349 from trunk into ruby_1_9_2.
--
* io.c (rb_io_extract_encoding_option): accept Encoding object as
encoding: optional argument. [ruby-dev:42884]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
06:30 AM Revision 81704536 (git): merges r30330 from trunk into ruby_1_9_2.
--
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
06:19 AM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
(2011/01/14 19:04), SATOH Fumiyasu wrote:
> At Fri, 14 Jan 2011 17:29:53 +0900,
> U.Nakamura wrote:
>> なんですが、Unix localeとか出てくるとちょっとまずいかもという
>> 気はします。
>> なんかデフォルトの日本語localeがSJISなUnixがあったような気が
>> するんですが、なんだったかしら。AIXあたり?
>> そ...
naruse (Yui NARUSE)

01/15/2011

02:29 PM Revision 0afea55d (git): * 2011-01-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:29 PM Revision d197cd62 (git): * ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in gzip's header
is the size of uncompressed input data modulo 2^32.
[ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:59 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Kurt: I'd say at least WeakReference and ReferenceQueue, with the former as a GC-aware native builtin. The latter could be pure Ruby if nobody wants it to be native, but it would be native in JRuby. I really believe it needs to b...
headius (Charles Nutter)
04:21 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Maybe we should take this approach:

1) A standard set of "Weak" classes/API/namespace: WeakReference, ReferenceQueue, WeakKeyHash, maybe even a WeakPair, etc. Brian's ref gem and Charles' weakling gem are an excellent start....
kstephens (Kurt Stephens)
12:02 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Ahh sure, the finalizer way...I thought you meant some other way.

Yes, a finalizer-based queue would work. There are a few issues:

* Much slower than a native queue
* All those finalizers would slow down garbage colle...
headius (Charles Nutter)
05:58 AM Feature #4264: General type coercion protocol for Ruby
=begin
The:

def to(target_module, *args)
send("to_#{target_module.name}", *args)
end

protocol requires the dynamic construction of a Symbol (and/or String), whereas the:

def to(target_module, *args)
send(targe...
kstephens (Kurt Stephens)
04:15 AM Bug #4282 (Rejected): Range#map inconsistency with blocks like {...} and do...end
=begin
Yes it is. It has nothing to do with Range, but the p method.

p (...).meth { ... } is parsed as p( (...).meth { ... } ), while
p (...).meth do ... end is parsed as p( (...).meth ) do ... end.

When in doubt, you shoul...
shyouhei (Shyouhei Urabe)
03:16 AM Bug #4282 (Rejected): Range#map inconsistency with blocks like {...} and do...end
=begin
I'm not sure that it's supposed to be like that:

p (1..2).map{|i|
i
}.class # => Array

p (1..2).map do |i|
i
end.class # => #<Enumerator: 1..2:map>

p (1..2).map d...
dre3k (Andrei Kulakov)
03:01 AM Revision 49cf75e6 (git): * test/net/smtp/test_ssl_socket.rb: fix dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:57 AM Revision b794a2bd (git): * configure.in (warnflags): add -Werror=implicit-function-declaration
if available.
* lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests.
* test/mkmf/base.rb (setup, teardown): restore config values.
* test/mkmf/test_flags.rb: split from test_find_executable.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/...
nobu (Nobuyoshi Nakada)
01:04 AM Revision ca6a75cd (git): * ruby.c (process_options): autoload rubygems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:00 AM Revision 2ec4b694 (git): * tool/compile_prelude.rb (Prelude#initialize): ignore empty
preludes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:48 AM Revision 7350562e (git): * ruby.c (ruby_init_prelude): get rid of global namespace
pullution.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:42 AM Revision fea35564 (git): * include/ruby/io.h: missing prototypes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:18 AM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
On Fri, Jan 14, 2011 at 9:07 AM, Roger Pack <rogerdpack2@gmail.com> wrote:
> +1
>
> Users do already have this available:
>
> system("#{Gem.ruby} your_args_here")
>
> so maybe what we really need is Process.ruby_bin method...
headius (Charles Nutter)
12:11 AM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
Hongli/Michael: The linked code would probably work well enough as a default implementation. The problem is it's not default, so everyone has their own code for doing it. This could could probably be included, verbatim, as a stan...
headius (Charles Nutter)

01/14/2011

09:05 PM Bug #3869: Logger#log does not handle or escape new-line characters.
=begin
Hal, sorry for not responding long time.

On Thu, Jan 13, 2011 at 16:09, Motohiro KOSAKI <redmine@ruby-lang.org> wrote:
> Hal nahi-san, It this good enough?

KOSAKI-san, thanks for picking up this issue and creating the patc...
nahi (Hiroshi Nakamura)
06:37 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
> 真面目なプログラムはSJISとかいうどう考えてもヤバい名前は使わ
> ないと思うんですよね。
> データベースアクセスするのにSJISとか書く人は思う存分はまれば
> いいと思うので、まあいいんじゃないでしょうか。
>
> なんですが、Unix localeとか出てくるとちょっとまずいかもという
> 気はします。
> なんかデフォルトの日本語localeがSJISなUnixがあったような気が
> するんですが、なんだったかしら。AIX...
kosaki (Motohiro KOSAKI)
06:01 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
2011年1月14日17:29 U.Nakamura <usa@garbagecollect.jp>:
> こんにちは、なかむら(う)です。
>
> In message "[ruby-dev:43033] Re: [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS"
> on Jan.14,2011 17:10:00, <kosa...
naruse (Yui NARUSE)
05:30 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
こんにちは、なかむら(う)です。

In message "[ruby-dev:43033] Re: [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS"
on Jan.14,2011 17:10:00, <kosaki.motohiro@gmail.com> wrote:
> 実は全然思い出せないんですが、SJISはUnix l...
usa (Usaku NAKAMURA)
05:10 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
2011年1月14日16:35 U.Nakamura <usa@garbagecollect.jp>:
> こんにちは、なかむら(う)です。
>
> In message "[ruby-dev:43030] [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS"
> on Jan.14,2011 16:05:56, <redmine@...
kosaki (Motohiro KOSAKI)
04:57 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
まだ考え中ですが、今のところ特に反対要素はありません。

まず、現状 SJIS = Shift_JIS なのは、Java にあわせたものです。

しかし、Java の経緯は、
1.1: SJIS == Shift_JIS
1.2: SJIS, Shift_JIS == MS932
1.4.1: SJIS == Shift_JIS, MS932
なのであんまり参考になりません。

IANA Charsets にも S...
naruse (Yui NARUSE)
04:35 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
こんにちは、なかむら(う)です。

In message "[ruby-dev:43030] [Ruby 1.9-Feature#4280] SJIS should be an alias of Windows-31J, not of Shift_JIS"
on Jan.14,2011 16:05:56, <redmine@ruby-lang.org> wrote:
> Javaでは SJIS==Shift_JIS ですね。以下でJava...
usa (Usaku NAKAMURA)
04:05 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
FYI:

Javaでは SJIS==Shift_JIS ですね。以下でJavaの歴史的経緯が説明されているようです。

http://www.ingrid.org/java/i18n/encoding/shift_jis.html
=end
kosaki (Motohiro KOSAKI)
01:08 PM Feature #4280: SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin

=end
usa (Usaku NAKAMURA)
01:07 PM Feature #4280 (Closed): SJIS should be an alias of Windows-31J, not of Shift_JIS
=begin
Rubyのencodingとして「SJIS」を指定する時、指定している人はShift_JISとWindows-31Jの違いを意識してる可能性は低いように思います。
だとすると、1.8までの$KCODE="sjis"がWindows-31Jに対応させられていることから考えて、SJISはShift_JISではなくWindows-31Jのaliasであるべきではないでしょうか?
=end
usa (Usaku NAKAMURA)
03:49 PM Feature #4247: New features for Array#sample, Array#choice
=begin
Like Benoit said, Array#choice does sound like it would return only one element, I very much like the proposal of:

p [1, 2, 3].sample(5, repeat: true) #=> [2, 2, 3, 1, 3]

I don't think the distinction between #sample...
gunn (Arthur Gunn)
03:47 PM Bug #4187 (Closed): Error: test_starttls(IMAPTest)
=begin
This issue was solved with changeset r30544.
Kazuhiro, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

----
* test/net/imap/test_imap.rb: call neither logout nor ...
shugo (Shugo Maeda)
03:32 PM Bug #4187: Error: test_starttls(IMAPTest)
=begin
前田です。

2010年12月23日7:47 Kazuhiro NISHIYAMA <redmine@ruby-lang.org>:
> test_starttls で Error になります。
> IOError の方が多いのですが、何度か実行していると OpenSSL::SSL::SSLError になることもあるようです。
> 表面化するようになった理由は #4186 と同じ証明書の期限切れのようです。
>
> assert がないの...
shugo (Shugo Maeda)
03:09 PM Bug #4249 (Closed): Net::IMAP gets a parse error response while sending multibyte mail
=begin
This issue was solved with changeset r30543.
Yoshimasa, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
----
* lib/net/imap.rb: use bytesize for binary strings.
...
naruse (Yui NARUSE)
02:52 PM Feature #4066 (Rejected): Encoding GBK needs update
=begin

=end
naruse (Yui NARUSE)
02:26 PM Revision 8dc0eb6c (git): * vm_method.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
09:45 AM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
I don't think it is a clean environment (I think it forks the parent process so you have a copy of everything it had) but does the following handle many of these cases? It gives you an isolated environment plus a way to talk to t...
eric (Eric Anderson)
05:51 AM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
> Do you really need a core method for this? People can just copy-paste the code we use in Phusion Passenger for locating the current Ruby. We even have RVM support. https://github.com/FooBarWidget/passenger/blob/6a5d5b2e50282320...
adgar (Michael Edgar)
04:29 AM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
Do you really need a core method for this? People can just copy-paste the code we use in Phusion Passenger for locating the current Ruby. We even have RVM support. https://github.com/FooBarWidget/passenger/blob/6a5d5b2e502823208a...
hongli (Hongli Lai)
07:37 AM Bug #4274 (Closed): SEGFAULT: ARGF.gets will crash if first file is not readable!
=begin
This issue was solved with changeset r30536.
Jan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
06:38 AM Revision 9d155ebf (git): * test/net/imap/test_imap.rb: call neither logout nor disconnect
unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
05:57 AM Revision 26616916 (git): * lib/net/imap.rb: use bytesize for binary strings.
patched by Yoshimasa Niwa. [ruby-core:34222]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:03 AM Revision 2dbf7d11 (git): * pack.c (pack_unpack): the resulted string of unpack('M') must have
ASCII-8BIT encoding (and ENC_CODERANGE_VALID). [ruby-core:34482]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
04:54 AM Revision a2e9ec24 (git): The cast must use uint32_t. [ruby-core:34481]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:51 AM Revision ec9a859c (git): * ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in
gzip's header is the size of uncompressed input data modulo 2^32.
[ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:40 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Ruby reference queue implementation:

http://github.com/bdurand/ref/blob/master/lib/ref/reference_queue.rb
=end
bdurand (Brian Durand)
03:29 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Can you describe how you would implement reference queues in pure Ruby?
=end
headius (Charles Nutter)
01:05 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Charles: The logic to enqueue a weak reference onto a reference queue needs to happen at some point in the garbage collection cycle and something needs to keep track of which weak references need to be enqueued on which queues. M...
bdurand (Brian Durand)
02:37 AM Revision 377b85f2 (git): * configure.in, win32/Makefile.sub (RUNRUBY): require path should
include "." because rbconfig.rb is there.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
02:02 AM Revision f52c2cc2 (git): Reduced gem_prelude to just require rubygems. Reviewed by Evan Phoenix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
12:35 AM Bug #4126: Pathname#+ サブクラスの場合
=begin
2010年12月6日21:07 Shyouhei Urabe <redmine@ruby-lang.org>:
>
> Pathnameを継承したときにいくつかのメソッドが自身のクラスのインスタンスを生成すべきだというpull requestが来ています。ご判断下さい。

考えたのですが、

class A < Array
end
p((A.new + A.new).class)

が A でなく Array になるのと同様、
とり...
akr (Akira Tanaka)
 

Also available in: Atom