Project

General

Profile

Activity

From 01/12/2011 to 01/18/2011

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 <[email protected]>:
> 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, <[email protected]> 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 <[email protected]>:
>  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 <[email protected]> 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 <[email protected]> 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 <[email protected]>:
> 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. <[email protected]>
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 <[email protected]> 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 <[email protected]> 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 <[email protected]>:
> こんにちは、なかむら(う)です。
>
> 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, <[email protected]> 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 <[email protected]>:
> こんにちは、なかむら(う)です。
>
> 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, <[email protected]> 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 <[email protected]>:
> 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 <[email protected]>:
>
> Pathnameを継承したときにいくつかのメソッドが自身のクラスのインスタンスを生成すべきだというpull requestが来ています。ご判断下さい。

考えたのですが、

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

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

01/13/2011

10:30 PM Revision 8409156e (git): * 2011-01-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:30 PM Revision 7909af18 (git): * 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/trunk@30536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:25 PM Feature #4243 (Assigned): [PATCH] DRb should not forefully close connections on DRb#stop_service
=begin

=end
usa (Usaku NAKAMURA)
05:21 PM Bug #4268: FIBER_USE_NATIVE を undef していると GC.stress 下で Enumerable#zip が core
=begin

=end
usa (Usaku NAKAMURA)
05:17 PM Bug #4268 (Assigned): FIBER_USE_NATIVE を undef していると GC.stress 下で Enumerable#zip が core
=begin

=end
usa (Usaku NAKAMURA)
05:16 PM Feature #4269 (Assigned): command with && should execute as shell
=begin

=end
usa (Usaku NAKAMURA)
05:15 PM Feature #4270 (Assigned): Resolv does not handle UTF8 domain names.
=begin

=end
usa (Usaku NAKAMURA)
12:23 PM Feature #4270: Resolv does not handle UTF8 domain names.
=begin
I forgot moving feature in Redmine..
=end
sorah (Sorah Fukumori)
11:42 AM Feature #4270 (Open): Resolv does not handle UTF8 domain names.
=begin
Reopening since I moved this to 'Feature'. Isn't it enough?
=end
nahi (Hiroshi Nakamura)
11:30 AM Feature #4270: Resolv does not handle UTF8 domain names.
=begin
Please request again as feature request.
=end
sorah (Sorah Fukumori)
10:52 AM Feature #4270: Resolv does not handle UTF8 domain names.
=begin
Charles Nutter (@headius) suggested a way for the code to fail less loudly. https://gist.github.com/775696

If Resolv is going to explicitly not support UTF8 domain names, it should raise a descriptive ArgumentError.
=end
postmodern (Hal Brodigan)
05:14 PM Bug #3869 (Assigned): Logger#log does not handle or escape new-line characters.
=begin

=end
usa (Usaku NAKAMURA)
04:42 PM Bug #3869: Logger#log does not handle or escape new-line characters.
=begin
Ext/syslog has similar issue. But I don't think we need care it because all syslogd in modern OSs has
enough strong escaping logic. So I don't find any reason we need platform independent syslog message escaping.
=end
kosaki (Motohiro KOSAKI)
04:09 PM Bug #3869: Logger#log does not handle or escape new-line characters.
=begin
Attached patch escapes all control-characters and new-line.

test case
---------------------------------------------------------------------------
require "logger"

inject_message = "Fault detected!\nI, [2010-09-23T12...
kosaki (Motohiro KOSAKI)
11:17 AM Bug #3869: Logger#log does not handle or escape new-line characters.
=begin
By not escaping "\n", it is possible to inject false log messages that appear to be legitimate. This can be used to mislead System Administrators or Forensic Tools which parse logs. By splitting log messages into multiple lines s...
postmodern (Hal Brodigan)
04:27 PM Feature #4264: General type coercion protocol for Ruby
=begin
Jonas: Cool! This is basically the exact protocol we're talking about here, just with different names. It actually also does Jim's suggestion, having the class-side to_ methods include the class name, as in your example of to_str...
headius (Charles Nutter)
03:45 PM Feature #4264: General type coercion protocol for Ruby
=begin
On Wed, Jan 12, 2011 at 10:11 AM, Yukihiro Matsumoto <[email protected]> wrote:
> Did I make myself clear?

Perfectly, thank you. This should be preserved for all time :) Bottom
line, don't define those methods unless you ar...
headius (Charles Nutter)
01:12 AM Feature #4264: General type coercion protocol for Ruby
=begin
Hi,

In message "Re: [ruby-core:34404] Re: [Ruby 1.9-Feature#4264][Open] General type coercion protocol for Ruby"
on Wed, 12 Jan 2011 14:09:47 +0900, Charles Oliver Nutter <[email protected]> writes:

|I guess I'm conf...
matz (Yukihiro Matsumoto)
04:03 PM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Brian: ReferenceQueue is unrelated to finalization. It is not possible to do what a RefQueue does using finalizers, unless you define them on every object you put into a weak collection (and likely slow down GC significantly as a...
headius (Charles Nutter)
05:57 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Charles writes:

| A GC callback API? There is no possibility of implementing such an API on JRuby. All the JVMs have different GC implementations, and there's no standard way to have GC callbacks into user code. Is that what...
kstephens (Kurt Stephens)
12:59 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Hi,

In message "Re: [ruby-core:34400] [Ruby 1.9-Bug#4168] WeakRef is unsafe to use in Ruby 1.9"
on Wed, 12 Jan 2011 11:17:12 +0900, Kurt Stephens <[email protected]> writes:

|Matz: are you suggesting renaming this ...
matz (Yukihiro Matsumoto)
12:12 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
My 2 cents on reference queues is that they aren't critical to Ruby weak references because of the way Ruby allows finalizers to be defined for objects external to the objects class definition. A ruby implementation of a weak key...
bdurand (Brian Durand)
03:37 PM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
"spawn_ruby", "popen_ruby"
=end
headius (Charles Nutter)
03:36 PM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
Process namespace would be fine as well. The nice thing about having it in Kernel is that it would be a top-level function everyone could use without dereferencing anything. And if it were named Ruby, it's a pretty clean command-...
headius (Charles Nutter)
01:27 PM Bug #4275 (Closed): Directory CrashReport is not exist, CrashReporter is right.
=begin
This issue was solved with changeset r30532.
Shota, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
mrkn (Kenta Murata)
12:50 PM Bug #4275: Directory CrashReport is not exist, CrashReporter is right.
=begin

=end
mrkn (Kenta Murata)
09:59 AM Bug #4275 (Closed): Directory CrashReport is not exist, CrashReporter is right.
=begin
~/Library/Logs/CrashReportと/Library/Logs/CrashReportは存在しません。

ls: /Library/Logs/CrashReport: No such file or directory
ls: /Users/sorah/Library/Logs/CrashReport: No such file or directory

その代わりにCrashReporterがあるのでそちらが正し...
sorah (Sorah Fukumori)
11:58 AM Revision 6ac9fea3 (git): update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:49 AM Revision def8c8c3 (git): * vm_insnhelper.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:28 AM Bug #4260: some SEGVs in test/ruby/test_enum.rb
=begin
本件解決を確認しました。ありがとうございました。
(ちなみに私の方で落ちる件はChikanagaさんのパッチじゃない方でした)
=end
usa (Usaku NAKAMURA)
10:17 AM Feature #4276 (Closed): Allow use of quotes in symbol syntactic sugar for hashes
Current syntactic sugar allows this:
hash = {Alabama: "AL"}
This feature request is to also allow symbols delimited by quotes (and thus able to contain a whitespace) to use an equivalent syntactic sugar:
hash2 = {"Rhode ...
tbenst (Tyler Benster)
08:57 AM Feature #4254: Allow method transplanting
=begin
Hi,

At Thu, 13 Jan 2011 01:48:33 +0900,
Jonas Pfenniger (zimbatm) wrote in [ruby-core:34444]:
> I agree with matz. If it's something we want for the next releases,
> then it should not break anything. Having transplantable ...
nobu (Nobuyoshi Nakada)
01:48 AM Feature #4254: Allow method transplanting
=begin
2011/1/11 Yukihiro Matsumoto <[email protected]>:
> See [ruby-core:34319].  From above rule we cannot allow all method
> transplanting from classes.  Since we don't want program fragility
> between versions, I don't want to a...
zimbatm (zimba tm)
05:45 AM Bug #4274 (Closed): SEGFAULT: ARGF.gets will crash if first file is not readable!
=begin
Hi, welcome to crash golf ;).

ruby -e 'gets rescue gets' CRASH!

or some alternative forms of it:

ARGV.unshift 'filename_that_does_not_exist'
ARGF.gets rescue nil
ARGF.gets

or

$*.unshift'X'
...
rbjl (Jan Lelis)
04:37 AM Revision 96874ec4 (git): * vm_dump.c: delete dashes to make lines 80 chars, Patched by
Shota Fukumori (sora_h). [Bug #4275] [ruby-dev:43021]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
04:23 AM Revision 5b9b8d9c (git): * vm_dump.c: fix misspelling of CrashReporter.
[Bug #4275] [ruby-dev:43021]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Kenta Murata
01:47 AM Bug #4249 (Assigned): Net::IMAP gets a parse error response while sending multibyte mail
=begin

=end
naruse (Yui NARUSE)
01:45 AM Bug #4272 (Closed): rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
"ruby/encoding.h" fixes this on my environment too.
=end
naruse (Yui NARUSE)
01:29 AM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
Tomoyuki:
> Please add the following line in test_encoding.c
>
> #include <ruby/encoding.h>
>
> Without that header, rb_utf8_encoding() has no prototype declaration and its return value is estimated to be int.

Yes...
ibc (Iñaki Baz Castillo)
01:25 AM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
Yui:
> I can reproduce this on ruby 1.9.3dev (2011-01-12 trunk 30517) [x86_64-freebsd8.2].
> Anyway what your environment? (why you didn't copy ruby -v ?)

Hi, I've tested with these versions of Ruby in my Linux Ubuntu 64...
ibc (Iñaki Baz Castillo)
01:22 AM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
Yukihiro:
> I could not reproduce your problem

Do you mean under Ruby 1.9.2 64 bits? If so please use a bigger argument (ruby test_bug.rb 100000). I've realized that depending on the machine it crashes sooner or later.

...
ibc (Iñaki Baz Castillo)
12:51 AM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
Hi,
I can reproduce SEGV on Mac OS X 10.6.6.
Please add the following line in test_encoding.c

#include <ruby/encoding.h>

Without that header, rb_utf8_encoding() has no prototype declaration and its return value is e...
nagachika (Tomoyuki Chikanaga)

01/12/2011

11:50 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
I can reproduce this on ruby 1.9.3dev (2011-01-12 trunk 30517) [x86_64-freebsd8.2].
Anyway what your environment? (why you didn't copy ruby -v ?)
=end
naruse (Yui NARUSE)
10:00 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
Hi,

I could not reproduce your problem, but your script allocates
thousands of threads by default. Each thread consumes at least 1M of
memory, so that allocating thousands of threads could cause memory
starvation, which ma...
matz (Yukihiro Matsumoto)
08:04 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
Hi,

In my environment script just like the following cause "[BUG] rb_register_sigaltstack. malloc error".
It's because all Thread object is stored in `threads' variable and cannot be GC'ed.
Could you show us your error m...
nagachika (Tomoyuki Chikanaga)
07:38 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
The bug also occurs if I use rb_ascii8bit_encoding(), rb_usascii_encoding() or rb_locale_encoding() so it must be a bug in rb_enc_str_new() function.
=end
ibc (Iñaki Baz Castillo)
07:14 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
The segmentfault just depends on the version of Ruby running the ruby code, and not on the version of Ruby compiling the C extension. This is:

a) C extension compiled with Ruby 1.9.1 and test_bug.rb executed with Ruby 1.9.2 ...
ibc (Iñaki Baz Castillo)
06:48 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
It's interesting the fact that (using my attached C extension) the following code doesn't crash (I mean under ruby 1.9.2-xxxx as under 1.9.1 it never crashes):

times.times do |num|
tester.test_rb_str_new
threads <<...
ibc (Iñaki Baz Castillo)
06:40 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
(please use the latest test_bug.rb attachment, it seems is not possible to remove an attachment in this Redmine)
=end
ibc (Iñaki Baz Castillo)
06:38 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin

=end
ibc (Iñaki Baz Castillo)
06:31 PM Bug #4272: rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
I've checked the provided test script under ruby-1.9.1-p376 and ruby-1.9.1-p430 and it DOES NOT crash.
=end
ibc (Iñaki Baz Castillo)
11:04 AM Bug #4272 (Closed): rb_enc_str_new() causes segmentfault when using threads in parallel
=begin
Hi, I attach a custom C extension which shows how rb_enc_str_new() causes segmentfault when running multiple threads. The bug is reproducible in 1.9.2-p0, 1.9.2-p136 and 1.9 today's snapshot (2011-01-12).

In order to test th...
ibc (Iñaki Baz Castillo)
11:12 PM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
On Tue, Jan 11, 2011 at 16:54, Charles Nutter <[email protected]> wrote:
> Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance

Why not put it under the Process namespace instead?
=end
now (Nikolai Weibull)
10:17 PM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
Hi,

I am not against adding a method to spawn the interpreter in platform
dependent way so that script can fork the interpreter without worrying
implementation detail. But I object to name it 'ruby' nor adding it
to 1.8.
...
matz (Yukihiro Matsumoto)
03:53 PM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
> The method should be backported to 1.8.7, ideally, so that libraries could freely start to use it as soon as possible.

This won't happen (at least under current policy). Newer libraries should just drop 1.8.7 support.
=end
shyouhei (Shyouhei Urabe)
12:55 AM Feature #4265: Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
I forgot to mention I proposed this in the old RCR system some time in 2005 or 2006. I can't find any active links to it anymore.
=end
headius (Charles Nutter)
12:54 AM Feature #4265 (Rejected): Provide a core method Kernel#ruby for invoking a new Ruby instance
=begin
Many libraries re-launch Ruby to perform additional tasks. Sometimes this is done for process isolation, sometimes it's to change startup command-line for a subset of work, and sometimes it's just the easiest way to launch a cle...
headius (Charles Nutter)
10:05 PM Revision 36a0e432 (git): Exception#to_s should actually call to_s.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
10:01 PM Feature #4264: General type coercion protocol for Ruby
=begin
I have this version from 2004 that is lying around that does approximately the same. It was included in the factets gem but got pulled out at some time. It uses #cast_to and #cast_from as the methods of coercion. Each conversion ...
zimbatm (zimba tm)
07:05 PM Feature #4264: General type coercion protocol for Ruby
=begin
On Wed, Jan 12, 2011 at 1:46 AM, Haase, Konstantin
<[email protected]> wrote:
> Both #as (Parslet, Sequel, MetaWhere, hacketyhack, Facets, Ruport, CouchPotato, ...) and #to (RSpec, Ramaze, ActiveSuppor...
manveru (Michael Fellinger)
02:10 PM Feature #4264: General type coercion protocol for Ruby
=begin
On Tue, Jan 11, 2011 at 7:18 PM, Yukihiro Matsumoto <[email protected]> wrote:
>  * to_s, to_i, to_f, to_a etc. are conversion method.  For example, if
>   a object can be converted into a string, it would have to_s method,
>...
headius (Charles Nutter)
10:19 AM Feature #4264: General type coercion protocol for Ruby
=begin
Hi,

In message "Re: [ruby-core:34366] Re: [Ruby 1.9-Feature#4264][Open] General type coercion protocol for Ruby"
on Wed, 12 Jan 2011 02:14:24 +0900, Charles Oliver Nutter <[email protected]> writes:

|> (1a) Do we nee...
matz (Yukihiro Matsumoto)
08:35 AM Feature #4264: General type coercion protocol for Ruby
=begin
On Wed, Jan 12, 2011 at 2:10 AM, Rodrigo Rosenfeld Rosas
<[email protected]> wrote:
>  Whatever what name is chosen, shouldn't we also define another method like
> Object#from so that Object#to would be implemented as below?
...
sorah (Sorah Fukumori)
06:05 AM Feature #4264: General type coercion protocol for Ruby
=begin
Below is the simple, extensible technique used in Oaklisp.
Give each Module a coercer Symbol.
Apply the target type's coercer to the object to be coercer.
Cost is two message sends.

class Module
IDENTITY_PROC = lam...
kstephens (Kurt Stephens)
05:00 AM Feature #4264: General type coercion protocol for Ruby
=begin
On Tue, Jan 11, 2011 at 12:23 PM, Jim Weirich <[email protected]> wrote:
>
> On Jan 11, 2011, at 1:17 PM, James Edward Gray II wrote:
>
>> I understood it as to_a/to_s are for conversions.  They basically mean
>> change ...
headius (Charles Nutter)
03:11 AM Feature #4264: General type coercion protocol for Ruby
=begin
A question was raised about whether #to should understand context, as in knowing a top-level object being coerced to YAML should include the --- header. The answer seems to come from Marshal.

Marshal.dump(object) knows how t...
headius (Charles Nutter)
02:35 AM Feature #4264: General type coercion protocol for Ruby
=begin
Tom Enebo proposed (in an offhand way) an additional #to? that simply returns whether the coercion would succeed. So the following code:

obj.to_str if obj.respond_to? :to_str

Would become

obj.to(String) if obj.to?(...
headius (Charles Nutter)
02:30 AM Feature #4264: General type coercion protocol for Ruby
=begin
FWIW, JRuby's to_java does support real types and symbolic types, as in the following equivalent calls:

'foo'.to_java # defaults to java.lang.Object, so we produce a java.lang.String
'foo'.to_java :string # known "core" ty...
headius (Charles Nutter)
02:14 AM Feature #4264: General type coercion protocol for Ruby
=begin
On Tue, Jan 11, 2011 at 10:27 AM, Jim Weirich <[email protected]> wrote:
> (1) This is a extending the concept of to_ary and to_str to arbitrary
> classes, (as opposed to extending the concepts of to_a and to_s).  Correct?
...
headius (Charles Nutter)
02:11 AM Feature #4264: General type coercion protocol for Ruby
=begin
Sorry, I didn't see this message when I posted the last one.

Em 11-01-2011 15:09, Charles Nutter escreveu:
> Issue #4264 has been updated by Charles Nutter.
>
>
> Other thoughts after talking with tenderlove:
>
> 1. do...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:11 AM Feature #4264: General type coercion protocol for Ruby
=begin
Whatever what name is chosen, shouldn't we also define another method
like Object#from so that Object#to would be implemented as below?

def to(klass)
klass.from(self)
end

Rodrigo

Em 11-01-2011 14:46, Haase, Ko...
rosenfeld (Rodrigo Rosenfeld Rosas)
02:09 AM Feature #4264: General type coercion protocol for Ruby
=begin
Other thoughts after talking with tenderlove:

1. double-dispatched protocol

The #to protocol could double-dispatch against the class, as in:

def to(type)
type.coerce(self)
end

This would allow defining c...
headius (Charles Nutter)
01:46 AM Feature #4264: General type coercion protocol for Ruby
=begin
Both #as (Parslet, Sequel, MetaWhere, hacketyhack, Facets, Ruport, CouchPotato, ...) and #to (RSpec, Ramaze, ActiveSupport) are use in DSLs.
However, I really prefer #to.

Konstantin

On Jan 11, 2011, at 17:39 , Rodrigo Rose...
rkh (Konstantin Haase)
01:39 AM Feature #4264: General type coercion protocol for Ruby
=begin
Although I don't like Groovy very much (but still use it at a daily basis as part of my current job - at least it is not as bad as Grails - ARGH!), I think 'as' is also a good name and maybe even better than 'to'.
=end
rosenfeld (Rodrigo Rosenfeld Rosas)
01:26 AM Feature #4264: General type coercion protocol for Ruby
=begin
I like #to better as well, but isn't it too generic a name, sure to conflict with libraries out there?

Groovy uses #as

obj.as String

...though that's just as generic.
=end
headius (Charles Nutter)
01:07 AM Feature #4264: General type coercion protocol for Ruby
=begin
> The result for failure could either be "soft": returning nil, or "hard": raising an error.

You mean #to_x and #to_x! ? By the way, I prefer obj.to(Array) instead of obj.to_any(Array)

Great idea! +1
=end
rosenfeld (Rodrigo Rosenfeld Rosas)
12:38 AM Feature #4264 (Feedback): General type coercion protocol for Ruby
=begin
Justification: Ruby objects variously define to_ary, to_int and others for either explicit (before call) or implicit (during call) coercion. However, the set of methods is limited, and adding more names just clutters namespaces ...
headius (Charles Nutter)
09:53 PM Revision b404cbac (git): Simple fix for emacs parsing. (emacs doesn't like _heredocs_)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Ryan Davis
07:37 PM Bug #4258 (Closed): valgrind ./ruby -ve ''
=begin
This issue was solved with changeset r30522.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
akr (Akira Tanaka)
07:37 PM Bug #4260 (Closed): some SEGVs in test/ruby/test_enum.rb
=begin
This issue was solved with changeset r30521.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
akr (Akira Tanaka)
07:26 PM Bug #4260: some SEGVs in test/ruby/test_enum.rb
=begin
手元では SEGV は起きないのですが、valgrind にかけると不正なメモリアクセスが検出されていました。

以下で valgrind の警告は消えたのですが、効くでしょうか?

diff --git a/enum.c b/enum.c
index d17d9d4..c891d71 100644
--- a/enum.c
+++ b/enum.c
@@ -802,13 +802,15 @@ sort_by_i(VALU...
nagachika (Tomoyuki Chikanaga)
04:34 PM Bug #4260 (Assigned): some SEGVs in test/ruby/test_enum.rb
=begin
その後、akrさんに、test_enum.rb内のtest_calccを抜くとどうなるか、と言われて確認したところ、SEGVしなくなりました。

test_callccはtest_dropやtest_sort_byの前に実行されているので、そこでメモリが破壊されているならその後のどこかでSEGVが起きるということで、説明はつきそうです。
また、test_callccの中ではsort_by(=enum.cのenum_sort_by)が呼ばれてい...
usa (Usaku NAKAMURA)
04:45 PM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
Alternative one is here. This one fixes both (1) and (2). But it only fixes Mutex#synchronize. That said, timeout{} still might not call ruby level ensure block.
=end
kosaki (Motohiro KOSAKI)
03:18 PM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
That said, our Mutex.synchronize() method has two unsafe point.

-----------------------------------------------------------------
def synchronize
self.lock
// (1)
begin
yield
ensure
...
kosaki (Motohiro KOSAKI)
03:01 PM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
And, I think asynchronous exception should be blocked and delayed while running ensure block.
Otherwise Mutex.unlock can be bypassed.

ko1, What do you think?
=end
kosaki (Motohiro KOSAKI)
02:45 PM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
Old days, C# had similar issue. and they changed Monitor.enter(= our Mutex.lock) semantics.

http://www.bluebytesoftware.com/blog/2007/01/30/MonitorEnterThreadAbortsAndOrphanedLocks.aspx


So, Can we take similar way? T...
kosaki (Motohiro KOSAKI)
02:41 PM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
Hm, the crash issue seems different and unrelated one from this. becuase ruby_1_9_2 can reproduce
recursive deadlock issue, but can't reproduce crash.
=end
kosaki (Motohiro KOSAKI)
03:41 AM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
This test program also makes ruby crash on my envronment (trunk + linux x86_64).

Related [Bug #3880]?


<internal:prelude>:8: [BUG] Segmentation fault
ruby 1.9.3dev (2011-01-09 trunk 30500) [x86_64-linux]

-- Con...
kosaki (Motohiro KOSAKI)
03:11 AM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
Sorry about that, wrong bug. Too many bug windows open.
=end
headius (Charles Nutter)
03:11 AM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
Sorry about that, wrong bug. Too many bug windows open.
=end
headius (Charles Nutter)
03:02 AM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
A question was raised about whether #to should understand context, as in knowing a top-level object being coerced to YAML should include the --- header. The answer seems to come from Marshal.

Marshal.dump(object) knows how t...
headius (Charles Nutter)
02:49 AM Bug #4266: Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
FYI, JRuby does not use timeout.rb anymore (as of JRuby 1.3ish I think). We use a native implementation based on Java's timed, thread-pooling executor in java.util.concurrent. The original timeout has many race conditions that ar...
headius (Charles Nutter)
01:59 AM Bug #4266 (Closed): Timeouts in threads cause "ThreadError: deadlock; recursive locking"
=begin
Run the attached file (or this pastie http://pastie.org/1448542) a few times and you'll eventually get:

ThreadError: deadlock; recursive locking:
<internal:prelude>:8:in `lock'
<internal:prelude>:8:in `synchronize'
bi...
cjbottaro (Christopher Bottaro)
04:27 PM Bug #4246 (Closed): Net::HTTP does not timeout during SSL connection handshake
=begin
This issue was solved with changeset r30520.
Marc, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
yugui (Yuki Sonoda)
04:27 PM Bug #4261 (Closed): readline compilation error
=begin
This issue was solved with changeset r30519.
Yuki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
yugui (Yuki Sonoda)
03:35 PM Revision 4c703e3d (git): * 2011-01-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:35 PM Revision e57215bf (git): * addr2line.c (get_nth_dirname): decrement the directory index
because the index specifies the index of given included_directories
which is separated by NUL and its index is begun from 1.
Note that 0 specifies the current directory of the compilation.
see also http://www.dwarfstd.org/doc/dwarf...
naruse (Yui NARUSE)
02:22 PM Revision b1f8bbf4 (git): * io.c (rb_f_syscall): Add warning messages. [ruby-core:34062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e kosaki (Motohiro KOSAKI)
02:16 PM Revision da235830 (git): * 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]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:15 PM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
A GC callback API? There is no possibility of implementing such an API on JRuby. All the JVMs have different GC implementations, and there's no standard way to have GC callbacks into user code. Is that what you mean?

Referen...
headius (Charles Nutter)
11:17 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Matz: are you suggesting renaming this C implementation "WeakPtr" (or something), make it part of Ruby core, and let the old WeakRef class die off?
Should I take a crack at designing a GC callback API and make this an ext/*.so?...
kstephens (Kurt Stephens)
10:19 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Hi,

In message "Re: [ruby-core:34353] Re: [Ruby 1.9-Bug#4168] WeakRef is unsafe to use in Ruby 1.9"
on Wed, 12 Jan 2011 00:03:50 +0900, Charles Oliver Nutter <[email protected]> writes:

|It's more similar to Java's W...
matz (Yukihiro Matsumoto)
04:48 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Given proper WeakReference and ReferenceQueue implementations (the latter we still don't for C, I believe), implementing weak-keyed or weak-valued hashes becomes trivial. See my "weakling" gem for an example that uses Java WeaRef...
headius (Charles Nutter)
04:09 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
Charles:

I agree particularly with the weak reference error problem in the Delegate API. It forces the programmer to rescue exceptions when a simple nil test is enough. Weakrefs cannot be used without evasive action anyway...
kstephens (Kurt Stephens)
12:04 AM Feature #4168: WeakRef is unsafe to use in Ruby 1.9
=begin
On Tue, Jan 11, 2011 at 3:08 AM, Kurt Stephens <[email protected]> wrote:
> Issue #4168 has been updated by Kurt  Stephens.
>
>
> See commit in branch from trunk:
>
> http://github.com/kstephens/ruby/commit/0942a955c64...
headius (Charles Nutter)
02:11 PM Revision caab5dce (git): * 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/trunk@30525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kosaki (Motohiro KOSAKI)
02:09 PM Bug #4251: Segmentation fault when using ruby-prof and Ruby 1.9.2
=begin
It's certainly not a perfect 1.9 implementation, but profiling on JRuby's 1.9 mode using --profile or --profile.graph (or the jruby-prof gem) may also be a fine stand-in for now. The profiling boundaries are similar to ruby-prof,...
headius (Charles Nutter)
08:22 AM Bug #4251: Segmentation fault when using ruby-prof and Ruby 1.9.2
=begin
On 1/11/2011 6:16 PM, Evan Chaney wrote:
> Issue persists on ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0].

This is an issue with ruby-prof, not Rails or Ruby itself. I've had
segfaults with ruby-prof run...
lsegal (Loren Segal)
08:15 AM Bug #4251: Segmentation fault when using ruby-prof and Ruby 1.9.2
=begin
Issue persists on ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0].
=end
evanchaney (Evan Chaney)
11:37 AM Bug #4267 (Closed): Make addr2line.c compile on OpenBSD
=begin
This issue was solved with changeset r30517.
Jeremy, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
05:22 AM Bug #4267 (Closed): Make addr2line.c compile on OpenBSD
=begin
OpenBSD uses the elf_abi.h header file instead of the elf.h header file. With the attached patch trunk builds on OpenBSD.
=end
jeremyevans0 (Jeremy Evans)
10:37 AM Revision 38f12939 (git): * vm_dump.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:36 AM Revision d737ae54 (git): update comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
10:35 AM Revision fd2f2385 (git): * vm.c (thread_free): reset ruby_current_thread if it points the
thread to free.
* gc.c (slot_sweep): don't call RUBY_VM_SET_FINALIZER_INTERRUPT if
there is no current thread.
[ruby-dev:43000]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
10:27 AM Revision e1680f8c (git): * enum.c (sort_by_i): reenter check more strictly.
(sort_by_cmp): ditto.
[ruby-dev:43003] reported by Usaku NAKAMURA.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:47 AM Bug #4227 (Closed): Webrick tests use deprecated :RequestHandler option
=begin
This issue was solved with changeset r30516.
Peter, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
09:31 AM Feature #4270 (Rejected): Resolv does not handle UTF8 domain names.
=begin
UTF-8 domain names are punycode, so you should encode utf-8 domain name to punycode domain name.

Like

Resolv.getaddress('xn--59g.com')
=end
sorah (Sorah Fukumori)
09:28 AM Feature #4270 (Closed): Resolv does not handle UTF8 domain names.
=begin
Resolv.getaddress(es) cannot handle UTF8 domain names:

Steps to reproduce error:

Resolv.getaddress('∞.com')

Expected result:

174.132.17.93

Actual result:

Encoding::CompatibilityError: in...
postmodern (Hal Brodigan)
08:52 AM Bug #4263 (Rejected): `pack': can't convert Fixnum into String (TypeError)
=begin
You use the result of FindWindowX as the first argument at next call,
but the returned value and the first argument don't match.

FindWindowEx = Win32API.new('user32', 'FindWindowEx', ['P'] * 4, 'L')
should be:
...
nobu (Nobuyoshi Nakada)
08:47 AM Feature #4262 (Closed): {key=>val}.hash is always equal to {val=>key}.hash
=begin
This issue was solved with changeset r30514.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
08:24 AM Bug #1813: Threading seg fault (1.9.1-p129 Linux/Mac)
=begin
The given code produces a segmentation fault under ruby 1.9.2-p0 and 1.9.2-p136 (tested in Ubuntu 64 bits). In 1.8 it doesn't crash:

(eval):3: [BUG] Segmentation fault
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-lin...
ibc (Iñaki Baz Castillo)
07:47 AM Feature #4269 (Closed): command with && should execute as shell
=begin
Hello.
Currently with linux
command("ls && ls") is passed out to shell (correctly) so that it can run with the correctly logic.

On windows it should also do the same, but doesn't currently, passing it straight through a...
rogerdpack (Roger Pack)
07:26 AM Revision ef073660 (git): * 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:34203]
* test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during...
yugui (Yuki Sonoda)
07:26 AM Revision 6c977786 (git): * ext/readline/extconf.rb: new checks for RL_PROMPT_START_IGNORE
and RL_PROMPT_END_IGNORE. [ruby-core:34331]
* ext/readline/readline.c: enables USE_INSERT_IGNORE_ESCAPE only if
RL_PROMPT_{START,END}_IGNORE are available to get rid of compilation
error with libedit.
git-svn-id: svn+ssh://ci.ruby-...
yugui (Yuki Sonoda)
07:21 AM Bug #4268 (Closed): FIBER_USE_NATIVE を undef していると GC.stress 下で Enumerable#zip が core
=begin
r27635 (FIBER_USE_NATIVE パッチ取り入れ)以後の trunk で、
#undef FIBER_USE_NATIVE していると発生するのですが、以下の
ようなスクリプトで core を吐きます。

$ cat foo.rb
GC.stress = true

obj = Object.new
class << obj
include Enumerable
def each
...
metanest (Makoto Kishimoto)
06:54 AM Revision 596872f2 (git): * README.EXT.ja (rb_ensure): typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
06:20 AM Feature #4257: switch_hitter - an acceleration of date library
=begin
I ran switch_hitter against home_run's test suites. Most of the failures are due to differences between home_run and the standard library. There are a few failures that I think should be addressed in switch_hitter:

1) Oper...
jeremyevans0 (Jeremy Evans)
03:14 AM Feature #4247: New features for Array#sample, Array#choice
=begin
On 11 January 2011 14:39, Yusuke ENDOH <[email protected]> wrote:
> Hi,
>
> 2011/1/8 Benoit Daloze <[email protected]>:
> You have a misunderstanding.  Array#sample already supports optional
> argument to specify the count of ...
Eregon (Benoit Daloze)
02:35 AM Revision 4acff773 (git): * addr2line.c: OpenBSD uses the elf_abi.h header file instead of the
elf.h header file. patched by Jeremy Evans [ruby-core:34384]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
12:37 AM Revision 6bcf7098 (git): * test/webrick/test_cgi.rb: Removes usage of deprecated
:RequestHandler option.
patched by Peter Weldon [ruby-core:34010]
* test/webrick/test_httpproxy.rb: ditto.
* test/webrick/test_httpserver.rb: Add a test of the deprecation
behaviour.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tru...
naruse (Yui NARUSE)
 

Also available in: Atom