Project

General

Profile

Activity

From 10/22/2009 to 10/28/2009

10/28/2009

10:51 PM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin

=end
sunaku (Suraj Kurapati)
07:04 PM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin
I'm embedding a Ruby 1.9.1 in my app, and it would die with segmentation fault, and I was suspicious about the stack, as it's multithreaded. I applied your patch and it looks fine so far. I'm using the following code (and assume ...
romanbsd (Roman Shterenzon)
03:02 PM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin
Hi,

I am attaching two updated code examples which
test the multi-threading support of my updated
"ruby_bind_stack.patch" patch file.

One example uses UNIX System V contexts and the
other uses libpcl for embedding...
sunaku (Suraj Kurapati)
01:22 PM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin
Hi,

Nobu Nakada wrote:
> This patch does not work with multithreading at all.

Thank you for pointing out this problem. I have updated
my patch accordingly and am reattaching it to this issue.

Here is my approa...
sunaku (Suraj Kurapati)
09:36 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin
Hi,

At Wed, 28 Oct 2009 02:03:01 +0900,
Suraj Kurapati wrote in [ruby-core:26361]:
> I am attaching a "ruby_bind_stack.patch" patch file
> that adds a ruby_bind_stack() function to the Ruby C API.

This patch does not wo...
nobu (Nobuyoshi Nakada)
02:33 AM Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin

=end
sunaku (Suraj Kurapati)
02:02 AM Feature #2294 (Assigned): [PATCH] ruby_bind_stack() to embed Ruby in coroutine
=begin
Hi,

I am attaching a "ruby_bind_stack.patch" patch file
that adds a ruby_bind_stack() function to the Ruby C API.

This function allows me to inform the GC about the stack
boundaries of the coroutine inside which R...
sunaku (Suraj Kurapati)
07:42 PM Revision 2bb26c11 (git): * ruby.c (process_options): call rb_filesystem_encoding().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
07:42 PM Revision ee15e6ee (git): * io.c (Init_IO): rb_default_rs should be US-ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
04:41 PM Revision bc97306e (git): * 2009-10-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:41 PM Revision 501e9360 (git): * ext/socket/extconf.rb : Compilation failure on AIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Yutaka Kanemoto
04:37 PM Bug #2302 (Closed): Encoding.filesystem_encoding
=begin
This issue was solved with changeset r25529.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
03:34 PM Bug #2302: Encoding.filesystem_encoding
=begin
ふーむ、確かに。
Encoding.find('filesystem') にしましょうか。
=end
naruse (Yui NARUSE)
03:23 PM Bug #2302 (Closed): Encoding.filesystem_encoding
=begin
Encoding.filesystem_encoding が追加されましたが、名前が冗長なので反対します。
Encoding.filesystem でいいのではないでしょうか。

また、Encoding.locale がいまだ存在しないことを考えると、Encoding.find('filesystem') でいいんじゃないかという気もします。
=end
usa (Usaku NAKAMURA)
04:12 PM Revision 6cf27fcf (git): merges r24726 from trunk into ruby_1_9_1.
--
* vm_eval.c (eval_string_with_cref): fix to check local_table_size.
[ruby-dev:39205] [Bug #2024]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:11 PM Revision dd73ff23 (git): merges r24719 from trunk into ruby_1_9_1.
--
* test/ruby/test_argf.rb (assert_src_expected): refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:11 PM Revision aa502dc6 (git): merges r24714 from trunk into ruby_1_9_1.
--
* parse.y (rb_enc_symname2_p): not depend on nul terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:11 PM Revision f50e791c (git): merges r24704 from trunk into ruby_1_9_1.
--
* ext/zlib/zlib.c (gzfile_read_all): use gzfile_newstr;
set and convert its encoding. [ruby-dev:38304]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:11 PM Revision 3c0e4e61 (git): merges r24684 from trunk into ruby_1_9_1.
--
* vm_method.c (rb_remove_method_id): exported.
* numeric.c (num_sadded): fix for non-ascii method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:11 PM Revision 3750847f (git): merges r24679 from trunk into ruby_1_9_1.
--
* ext/strscan/strscan.c (strscan_set_string): set string should not be
dupped or frozen, because freezing it causes #concat method failure,
and unnecessary to dup without freezing. a patch from Aaron
Patterson at [ruby-core:251...
yugui (Yuki Sonoda)
04:11 PM Revision dbddc90b (git): merges r24659 from trunk into ruby_1_9_1.
--
* vm.c (collect_local_variables_in_env): skips internal variables.
[ruby-core:25125]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
04:06 PM Revision 9e049095 (git): * 2009-10-29
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:06 PM Revision 30cce03e (git): merges r24637 from trunk into ruby_1_9_1.
--
* st.c (st_delete_safe): deals with packed entries.
[ruby-core:25080]
* st.c (st_cleanup_safe): ditto. [ruby-core:25081]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:17 PM Bug #2178 (Closed): in gem_prelude.rb: encoding error
=begin
This issue was solved with changeset r25528.
Martin, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
03:13 PM Feature #2296: Dir.home(0)でTypeErrorが出る
=begin
了解しました。UIDだけが判る状況というのは無さそうなので、このチケットは閉じてください。
=end
hasari (Hiro Asari)
02:32 PM Feature #2296: Dir.home(0)でTypeErrorが出る
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39570] [Feature #2296] Dir.home(0)でTypeErrorが出る"
on Wed, 28 Oct 2009 14:25:15 +0900, Hiro Asari <redmine@ruby-lang.org> writes:

|「FixnumをStringに変換出来ない」旨のエラーが出るのは変かなと考えたのです。他に見たような記...
matz (Yukihiro Matsumoto)
02:25 PM Feature #2296: Dir.home(0)でTypeErrorが出る
=begin
ちょっと言葉足らずだったようです。失礼しました。
「FixnumをStringに変換出来ない」旨のエラーが出るのは変かなと考えたのです。他に見たような記憶が無かったので。「有る」という指摘も勿論歓迎です。
それで、Fixnumのまま使うとしたらどんなのが有ったら便利かな、と考えました。特に必要から生じたチケットではないので、このまま不採用という事でも一向に構いません。
=end
hasari (Hiro Asari)
01:29 PM Feature #2296 (Rejected): Dir.home(0)でTypeErrorが出る
=begin

=end
matz (Yukihiro Matsumoto)
01:28 PM Feature #2296: Dir.home(0)でTypeErrorが出る
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39563] [Bug #2296] Dir.home(0)でTypeErrorが出る"
on Wed, 28 Oct 2009 09:45:04 +0900, Hiro Asari <redmine@ruby-lang.org> writes:

|現在の実装ですと
|
|$ ruby19 -v -e 'p Dir.home(0)'
|ruby 1.9...
matz (Yukihiro Matsumoto)
09:46 AM Feature #2296 (Assigned): Dir.home(0)でTypeErrorが出る
=begin
これは bug ではなく、feature request ですね
=end
naruse (Yui NARUSE)
09:45 AM Feature #2296 (Rejected): Dir.home(0)でTypeErrorが出る
=begin
現在の実装ですと

$ ruby19 -v -e 'p Dir.home(0)'
ruby 1.9.2dev (2009-10-27 trunk 25509) [x86_64-darwin10.0.0]
-e:1:in `home': can't convert Fixnum into String (TypeError)
from -e:1:in `<main>'

となっています。
中で引数についてto_sみたいなこ...
hasari (Hiro Asari)
03:07 PM Bug #2290 (Closed): File.newに与えたエンコーディングは、to_pathで保持されるでしょうか?
=begin
This issue was solved with changeset r25526.
三村, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
02:16 PM Revision b467b54e (git): merges r24628 from trunk into ruby_1_9_1.
--
* thread.c (rb_thread_schedule): don't recur infinitely.
(rb_threadptr_execute_interrupts): ditto.
[ruby-dev:38060]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:15 PM Revision 67b79d6c (git): merges r24616 from trunk into ruby_1_9_1.
--
* thread.c (rb_check_deadlock): decrease number of sleepers before
deadlock detection because the deadlock exception makes main thread
run. [ruby-dev:39142]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25541 b...
yugui (Yuki Sonoda)
02:15 PM Revision e966115c (git): merges r24594 and r24604 from trunk into ruby_1_9_1.
--
Fix: change terminal's size on Widows when the window size is changed
* ext/readline/readline.c (readline_get): add rl_prep_terminal(1).
insited by jitte [ruby-list:43546]
--
use rl_prep_terminal only on Windows. [ruby-core:25009]
...
yugui (Yuki Sonoda)
02:15 PM Revision d1154dee (git): merges r24591 from trunk into ruby_1_9_1.
--
* thread.c (rb_thread_terminate_all): do not ignore interrupt when
reaping threads on termination. [ruby-dev:39107]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:15 PM Revision 8e996b79 (git): merges r24585 from trunk into ruby_1_9_1.
--
* dir.c (DEFINE_STRUCT_DIRENT): use union to allocate sufficient
memory space for Solaris. a patch from Naohisa GOTO
<ngoto at gen-info.osaka-u.ac.jp> in [ruby-dev:39132].
[ruby-dev:39062]
* configure.in (SIZEOF_STRUCT_DIRENT_...
yugui (Yuki Sonoda)
02:15 PM Revision 2f3fa385 (git): merges r24579 and r24581 from trunk into ruby_1_9_1.
--
* compile.c (NODE_RETURN): fire return event at explicit return.
[ruby-dev:38701]
--
* test/ruby/test_settracefunc.rb (test_return, test_return2): add two
tests for [ruby-dev:38701] and [ruby-core:24463].
--
* parse.y (reduce_node...
yugui (Yuki Sonoda)
02:15 PM Revision 3b6e807a (git): merges r24574 from trunk into ruby_1_9_1.
--
* vm_insnhelper.c (vm_call_cfunc): ensure hook c-return.
[Bug #1588]
* test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_raise):
follow above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25536 b2dd03c8-39...
yugui (Yuki Sonoda)
02:15 PM Revision 60a8777d (git): merges r24569 from trunk into ruby_1_9_1.
--
* parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string):
must be ascii compatible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:14 PM Revision 046ac45a (git): merges r24557 from trunk into ruby_1_9_1.
--
* parse.y (yylex): should dispatch scan-event even when follows
just after delayed-token. [ruby-dev:37855] [Bug #1071]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:14 PM Revision b48105fc (git): merges r24553 from trunk into ruby_1_9_1.
--
* lib/csv.rb: Change magic comment to US-ASCII in order to
make literals as US-ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:10 PM Revision 6a1718b7 (git): * 2009-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:10 PM Revision 192cd9cf (git): merges r24550,r24551 and r24552 from trunk into ruby_1_9_1.
--
* regparse.c (parse_char_class, parse_exp, parse_branch),
(parse_subexp): fixed memory leak. a patch from Ralf Junker
<ralfjunker AT gmx.de> at [ruby-core:24921].
--
* regparse.c: commit miss.
--
* regparse.c: commit miss again.
...
yugui (Yuki Sonoda)
01:27 PM Bug #2281 (Closed): Class#inherited Produces Misleading Error Message
=begin
This issue was solved with changeset r25521.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
matz (Yukihiro Matsumoto)
01:17 PM Bug #2291 (Closed): Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
This issue was solved with changeset r25519.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
shugo (Shugo Maeda)
01:14 PM Bug #2291: Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
前田です。

2009年10月28日11:09 Shugo Maeda <shugo@ruby-lang.org>:
> (1)の方針で行くなら、FTPサーバ上のモードを表すインスタンス変数を行しく
> 導入する必要がある気がします。
>
> とりあえず、r25518のbinary=の方の修正はいったんrevertしておきます。

結局ログイン状態を表すインスタンス変数を導入して、@binaryのデフォルト値を
trueにしました。
...
shugo (Shugo Maeda)
11:14 AM Bug #2291: Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
前田です。

2009年10月28日11:09 Shugo Maeda <shugo@ruby-lang.org>:
> (1)の方針で行くなら、FTPサーバ上のモードを表すインスタンス変数を行しく
> 導入する必要がある気がします。

すみません、T-Codeのせいでありえないtypoをしてしまいました。
sub(/行しく/, "新しく")してください。

--
Shugo Maeda
=end
shugo (Shugo Maeda)
11:09 AM Bug #2291: Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
前田です。

2009年10月28日0:48 Yui NARUSE <redmine@ruby-lang.org>:
>>(1) connect前にftp.binary = trueとしたことを覚えておいて、ftp.connect時にTYPEコマンドを
>> 発行するようにする。
>
> こちらだったら以下のような感じですかね。

よく考えたらlogin後でないとTYPEコマンドを発行できないですね。
また、現状では、Net::F...
shugo (Shugo Maeda)
12:48 AM Bug #2291: Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
あぁ、仰るとおりです。

>(1) connect前にftp.binary = trueとしたことを覚えておいて、ftp.connect時にTYPEコマンドを
> 発行するようにする。

こちらだったら以下のような感じですかね。

diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 239bd3c..351e624 100644
--- a/lib/net/ftp...
naruse (Yui NARUSE)
12:19 AM Bug #2291: Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
前田です。

2009年10月27日23:55 Shugo Maeda <redmine@ruby-lang.org>:
> この修正で問題ないとしたら、ちょっとAPIが変だと思うので、もうちょっと考えさせてください。

やっぱりこの修正だと、ftp.connect前にftp.binary = trueとすると、その後にloginやgetbinaryfile
などでbinary modeにセットしようとしてもTYPEコマンドが発行されなくなっ...
shugo (Shugo Maeda)
08:02 AM Revision feb34709 (git): * encoding.c (enc_find): fixed rdoc formatting.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:34 AM Revision 7a884fe4 (git): * encoding.c (get_filesystem_encoding): removed.
* encoding.c (rb_locale_encindex): added.
* encoding.c (rb_filesystem_encindex): added.
* encoding.c (rb_filesystem_encindex): add an alias 'filesystem'.
[ruby-dev:39574]
* encoding.c (enc_find): add rdoc about special aliases.
* g...
naruse (Yui NARUSE)
06:11 AM Revision e2e09b81 (git): Previous commit is for [ruby-core:25959]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
06:06 AM Revision 6790c040 (git): * gem_prelude.rb (Gem.set_home):
force_encoding(Encoding.filesystem_encoding)
[ruby-dev:39546]
* gem_prelude.rb (Gem.set_paths): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
06:06 AM Revision 8d9e64fb (git): * encoding.c (get_filesystem_encoding):
add Encoding.filesystem_encoding [ruby-dev:39546]
also see [ruby-core:25959]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
05:51 AM Revision 9f5f7b87 (git): * ext/etc/etc.c (etc_each_group): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:01 AM Revision f5d9f6f7 (git): * 2009-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:01 AM Revision ea1b7a95 (git): * time.c: rdoc fix for <=>
* array.c: ditto
* bignum.c: ditto
* compar.c: ditto
* file.c: ditto
* numeric.c: ditto
* string.c: rdoc fix for <=> and casecmp
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:50 AM Revision 705c5671 (git): * string.c: rdoc for <=>, casecmp
* bignum.c: rdoc for <=>
* file.c: ditto
* time.c: ditto
* compar.c: rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
04:20 AM Revision 2e868a34 (git): * vm_insnhelper.c (vm_setup_method): should push call frame before
raising exception, to put the Ruby-defined method name in the
error message. [ruby-core:26333]
* vm_insnhelper.c (VM_CALLEE_SETUP_ARG): macro modified.
* vm_insnhelper.c (vm_yield_setup_args): modified for new
VM_CALLEE_SETUP_ARG ...
matz (Yukihiro Matsumoto)
04:09 AM Revision db115a54 (git): * 2009-10-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:09 AM Revision 91c84cda (git): * lib/net/ftp.rb (Net::FTP#initialize): sets @binary to true.
* lib/net/ftp.rb (Net::FTP#binary=): sends a TYPE command only when
logged in. [ruby-dev:39548]
* lib/net/ftp.rb (Net::FTP#send_type_command): new private method
which sends an appropriate TYPE command according to the value of
@bi...
shugo (Shugo Maeda)
03:13 AM Bug #1837 (Closed): Test failure (test_block.rb) in Ruby 1.9.2 preview1 on FreeBSD 6.0
=begin
直ったと見なします
=end
naruse (Yui NARUSE)
03:11 AM Bug #2008 (Closed): test_io.rb: test 2 fails on FreeBSD
=begin
this seems resolved.
=end
naruse (Yui NARUSE)
03:10 AM Bug #1066 (Feedback): Frequent failure: test_io.rb test 2 on OS X 10.5.6
=begin
Mike, this problem still reproduce?
=end
naruse (Yui NARUSE)
02:45 AM Feature #2032 (Assigned): Change the license to "GPLv2+ or Ruby's original".
=begin

=end
naruse (Yui NARUSE)
02:40 AM Bug #1972 (Assigned): Changing ENV['TZ'] of a running process should change behavior of Time
=begin

=end
naruse (Yui NARUSE)
02:28 AM Feature #2022: Patch for openssl-1.0
=begin

=end
naruse (Yui NARUSE)
02:07 AM Feature #2126: ruby_init_stack() - add ability to specify or query max_stack_size
=begin
Hi,

I created a new issue #2294 to summarize
this feature request and the results of
my experiments for solving issue #2126.

Please close this feature request and
refer to the new #2294 issue instead.

Thanks....
sunaku (Suraj Kurapati)

10/27/2009

11:55 PM Bug #2291 (Assigned): Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
この修正で問題ないとしたら、ちょっとAPIが変だと思うので、もうちょっと考えさせてください。
# 一応commit前に自分に確認してもらえるとうれしいです。
=end
shugo (Shugo Maeda)
10:57 PM Bug #2291 (Closed): Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
This issue was solved with changeset r25518.
Akira, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
naruse (Yui NARUSE)
09:36 PM Bug #2291 (Assigned): Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 52bd375..239bd3c 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -132,6 +132,7 @@ module Net
@passive = false
@debug_mode = false
@resume =...
naruse (Yui NARUSE)
09:23 PM Bug #2291 (Closed): Net::FTPでソケットをオープンする前にbinary=を呼び出すと落ちる
=begin
% cat ftp_binary.rb
require 'net/ftp'
f = Net::FTP.new
f.binary = true

% ruby ftp_binary.rb
/Users/matsuda/ruby_trunk/lib/ruby/1.9.1/net/ftp.rb:224:in `putline': undefined method `write' for nil:NilClass (NoMethodErr...
matsuda (Akira Matsuda)
10:53 PM Bug #2184 (Assigned): Blocks strange behavior
=begin

=end
naruse (Yui NARUSE)
10:27 PM Feature #2293 (Closed): StringIOにread_nonblcokが欲しいです
=begin
This issue was solved with changeset r25517.
三村, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
10:24 PM Feature #2293: StringIOにread_nonblcokが欲しいです
=begin
StringIOがIOのエミュレートということならば、
APIの互換性として欲しいと思いました。
=end
takkanm (三村 益隆)
10:11 PM Feature #2293: StringIOにread_nonblcokが欲しいです
=begin
この要望って、APIの互換性という意味でですか?
つまり、read_nonblockはreadpartial の alias でいいんですかね。
=end
naruse (Yui NARUSE)
10:04 PM Feature #2293 (Closed): StringIOにread_nonblcokが欲しいです
=begin
ミムラ aka takkanmです。

RubySpec実施中に気付いたのですが、
1.9系のStringIOにreadpartialは追加されていますが、
read_nonblockが無いです。
read_nonblockは追加されることはないのでしょうか?
=end
takkanm (三村 益隆)
10:24 PM Bug #2016: Windows (win32.c) command line argument parsing bug
=begin
In JRuby world, we don't do that additional special handling of arguments on Windows, and people keep asking about non-working single-quotes and it *is* confusing, when jruby -e "puts 5" works, but jruby -e 'puts 5 ' doesn't work...
vvs (Vladimir Sizikov)
06:21 PM Bug #2016: Windows (win32.c) command line argument parsing bug
=begin
Why it should be problem when these characters will be properly escaped if needed?
=end
vo.x (Vit Ondruch)
09:46 AM Bug #2016: Windows (win32.c) command line argument parsing bug
=begin
With "the standard way", we cannot handle single quote and special wildcard characters such as ``**'', ``[]'' and ``{}''.
Hey everyone, do you want to move to "the standard way" ?
=end
usa (Usaku NAKAMURA)
09:40 PM Bug #2279: When embedding Ruby 1.9.1 it's impossible to disable GC
=begin
Hi,

In message "Re: [ruby-core:26356] [Bug #2279] When embedding Ruby 1.9.1 it's impossible to disable GC"
on Tue, 27 Oct 2009 16:09:49 +0900, Roman Shterenzon <redmine@ruby-lang.org> writes:

|r21463 (originally r21441...
matz (Yukihiro Matsumoto)
04:09 PM Bug #2279: When embedding Ruby 1.9.1 it's impossible to disable GC
=begin
r21463 (originally r21441) still bothers me, as a GC which is triggered in C code of the embedding application (say rb_ary_new) will cause the application to exit with fatal error, as it's not ruby_native_thread_p(). Should I ope...
romanbsd (Roman Shterenzon)
08:07 AM Bug #2279 (Closed): When embedding Ruby 1.9.1 it's impossible to disable GC
=begin
This issue was solved with changeset r25498.
Roman, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
matz (Yukihiro Matsumoto)
02:17 AM Bug #2279 (Closed): When embedding Ruby 1.9.1 it's impossible to disable GC
=begin
The function vm_xmalloc() will call garbage_collect_with_gvl() even if dont_gc is set by rb_gc_disable().
This is ok (though wastes some CPU cycles) when the code is running in native Ruby interpreter, as later the garbage_coll...
romanbsd (Roman Shterenzon)
09:07 PM Bug #2290: File.newに与えたエンコーディングは、to_pathで保持されるでしょうか?
=begin
ファイルシステムエンコーディング (C API で言う rb_filesystem_encoding()) になります。

ちなみに、ファイルシステムエンコーディングを得る Ruby API は現在存在しません。
存在しないのは今まで要望がなかったからです。
=end
naruse (Yui NARUSE)
08:47 PM Bug #2290 (Closed): File.newに与えたエンコーディングは、to_pathで保持されるでしょうか?
=begin
ミムラ aka takkanm です。
asakusa.rbでrubyspecを実施中で気になったものがあります。
core/file/to_path_spec.rb
28 it "preserves the encoding of the path" do
29 path = File.new(__FILE__.encode('euc-jp')).to_path
30 path.encodin...
takkanm (三村 益隆)
01:50 PM Revision 249569fd (git): * lib/net/ftp.rb (Net::FTP#initialize): @sock = nil.
* lib/net/ftp.rb (Net::FTP#binary=): send command only when
socket is open. [ruby-dev:39548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:22 PM Revision 8252adfd (git): * ext/stringio/stringio.c (Init_stringio): added read_nonblock and
write_nonblock aliases. [ruby-dev:39551]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:14 PM Revision 0d76affd (git): * ext/stringio/stringio.c (strio_data_type): typed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:05 PM Revision 20a2b656 (git): * string.c (rb_str_inspect): get rid of adding garbage to short
UTF-8 string. [ruby-dev:39550]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:22 PM Revision f582b224 (git): * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
12:22 PM Revision aacc3364 (git): * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
11:14 AM Bug #2278: (windows) RbConfig sitearchdir differs from $: path
=begin

From: "Nobuyoshi Nakada" <redmine@ruby-lang.org>
>
> Issue #2278 has been updated by Nobuyoshi Nakada.
>
> Status changed from Open to Closed
> % Done changed from 0 to 100
>
> This issue was solved with changeset r254...
spatulasnout (B Kelly)
03:47 AM Bug #2278 (Closed): (windows) RbConfig sitearchdir differs from $: path
=begin
This issue was solved with changeset r25492.
B, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
nobu (Nobuyoshi Nakada)
09:59 AM Bug #2253 (Assigned): should Class.new(Class) raise TypeError?
=begin

=end
naruse (Yui NARUSE)
09:34 AM Bug #1357 (Closed): Fixing variables into specific CPU registers deemed overrated & may disturb compilers' optimizers
=begin
r25504 fixes this.
=end
naruse (Yui NARUSE)
07:36 AM Revision 121d15dd (git): * string.c (chopped_length): get rid of unexpected exception.
see [ruby-core:26336].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:54 AM Revision ed58a66f (git): * gc.h (SET_MACHINE_STACK_END): use __i386.
Some compiler may not define __i386__.
Solaris 64-bit Developer's Guide:
http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
06:47 AM Revision 613a324f (git): * lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
a Pathname instance into a string. [ruby-core:26237]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shugo (Shugo Maeda)
04:36 AM Bug #1901: Segfault for Enumerable#count When Aliased to #size
=begin
This still occurs on trunk. May I suggest it block 1.9.2? (The, rather impressive, stack trace is attached).
=end
runpaint (Run Paint Run Run)
04:21 AM Bug #2281 (Closed): Class#inherited Produces Misleading Error Message
=begin
$ cat -n /tmp/inherited.rb
1 def Object.inherited
2 end
3
4 class C
5 end
$ ruby -vw /tmp/inherited.rb
ruby 1.9.2dev (2009-10-25 trunk 25456) [i686-linux]
/tmp/inherited.rb:4:in `...
runpaint (Run Paint Run Run)
03:56 AM Revision 718a78b7 (git): add commit log of r25499
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
03:30 AM Revision 206a9281 (git): * gc.h (SET_MACHINE_STACK_END): use __i386__ instead of __i386,
and explicit size qualifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:02 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin

=end
sunaku (Suraj Kurapati)
03:00 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

Nobu Nakada wrote:
> Ko1 is going to improve Fiber with ucontext. Wait for it.

This is good news. But I am confused. Earlier I tried to
implement Ruby as a C coroutine using fibers and ran into a
limitation...
sunaku (Suraj Kurapati)
01:29 AM Revision be6ff254 (git): * gc.c (SET_MACHINE_STACK_END): add x86_64 version by nobu.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:23 AM Feature #1697: Object#<=>
=begin
Given your comment, and Eero rightly pointing out that it's better to use eql? than == for this case,

diff --git a/object.c b/object.c
index 9f7537f..8f20621 100644
--- a/object.c
+++ b/object.c
@@ -1123,7 +1123,7 @...
marcandre (Marc-Andre Lafortune)
01:09 AM Revision 130a8ebd (git): * ChangeLog: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
01:08 AM Revision 70b881b5 (git): * ChangeLog: typo. this commit fixed [ruby-core:26166]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e U.Nakamura
12:29 AM Revision 404ed4f8 (git): * vm_exec.c (DECL_SC_REG): use __clang__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)

10/26/2009

11:56 PM Revision fb579435 (git): * mkconfig.rb: reverted r25443 because build_os is used in mkmf.rb
on some platforms. [ruby-core:26332]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:56 PM Revision 60903081 (git): * mkconfig.rb: reverted r25443 because build_os is used in mkmf.rb
on some platforms. [ruby-core:26332]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:29 PM Bug #2278 (Closed): (windows) RbConfig sitearchdir differs from $: path
=begin
Hi,

It seems in ruby 1.9.2dev, on windows, 'sitearch' may differ between
RbConfig vs. ruby_initial_load_paths[].

In RbConfig, 'sitearch' is i386-msvcr71:

arch => i386-mswin32_71
sitearch => i386-msvcr71
ruby_...
spatulasnout (B Kelly)
11:21 PM Revision 226c12d4 (git): * ext/tk/tcltklib.c: mistake on operation. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
11:21 PM Revision db68a429 (git): * ext/tk/tcltklib.c: mistake on operation. sorry.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
11:12 PM Revision 3c981342 (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:11 PM Revision ab77f00b (git): * parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856] * test/ripper/test_filter.rb: add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
11:06 PM Revision 33c5abbe (git): * gc.c (garbage_collect_with_gvl): do not garbage_collect when
dont_gc flag turned on. [ruby-core:26327]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
10:49 PM Feature #1697: Object#<=>
=begin
Excerpts from Yukihiro Matsumoto's message of Mon Oct 26 15:24:12 +0200 2009:
> Hi,
>
> In message "Re: [ruby-core:26318] [Feature #1697](Open) Object#<=>"
> on Mon, 26 Oct 2009 21:14:08 +0900, Marc-Andre Lafortune <redm...
rue (Eero Saynatkari)
10:24 PM Feature #1697: Object#<=>
=begin
Hi,

In message "Re: [ruby-core:26318] [Feature #1697](Open) Object#<=>"
on Mon, 26 Oct 2009 21:14:08 +0900, Marc-Andre Lafortune <redmine@ruby-lang.org> writes:

|In rb_obj_cmp, the rb_obj_equal is redundant. Did you me...
matz (Yukihiro Matsumoto)
09:14 PM Feature #1697 (Open): Object#<=>
=begin
Hi Matz,

In rb_obj_cmp, the rb_obj_equal is redundant. Did you mean the following?

diff --git a/object.c b/object.c
index 9f7537f..8f20621 100644
--- a/object.c
+++ b/object.c
@@ -1123,7 +1123,7 @@ rb_obj_not_ma...
marcandre (Marc-Andre Lafortune)
10:40 PM Revision 435f18f5 (git): * ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compiled
with old ruby 1.8.x.
* ext/tk/tkutil/tkutil.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagai (Hidetoshi Nagai)
10:40 PM Revision bb2cfd06 (git): * 2009-10-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:40 PM Revision a12849c3 (git): * ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compiled
with old ruby 1.8.x.
* ext/tk/tkutil/tkutil.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagai (Hidetoshi Nagai)
09:55 PM Bug #2016: Windows (win32.c) command line argument parsing bug
=begin
Since Ruby 1.9.2 should support wide characters arguments, I would suggest to replace call of GetCommandLine by GetCommandLineW. Then, it is possible to use CommandLineToArgvW API function, which should parse the command line by ...
vo.x (Vit Ondruch)
09:30 PM Feature #2255: unicode parameters cannot be passed to ruby
Ouch, sorry, this is patch for something bit different. Please forget about it (delete it if possible).
Thank you
vo.x (Vit Ondruch)
05:02 PM Feature #2255: unicode parameters cannot be passed to ruby
Attached patch should fix this issue.
vo.x (Vit Ondruch)
04:06 PM Feature #2255: unicode parameters cannot be passed to ruby
I tried ruby 1.9.2dev (2009-10-15) [i386-mswin32_90] from win32-unicode-test branch.
vo.x (Vit Ondruch)
08:58 PM Revision 1fe610b5 (git): * vm.c (invoke_block_from_c): return Qnil when its iseq is
SPECIAL CONST. [ruby-core:26335]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:51 PM Bug #2047 (Closed): Time#<=> Raises NoMethodError on Incomparable Argument
=begin

=end
marcandre (Marc-Andre Lafortune)
08:14 PM Revision 2215293a (git): * vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.
LLVM/clang defines __GNUC__ but doesn't have __asm__..
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
08:03 PM Bug #2276 (Closed): Array#<=> should not raise when comparison fails
=begin
Since the addition of Object#<=>, the only comparison that raised an error was Array#<=>(not_an_array).

Array#<=>(obj) now returns nil if obj is not array-like.

Maybe this should also be applied in the 1.8 line?

No...
marcandre (Marc-Andre Lafortune)
06:45 PM Revision c21350f9 (git): * win32/Makefile.sub (config.h): added RUBY_SITEARCH to use
different name from RUBY_ARCH. [ruby-core:26324]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:40 PM Bug #2212: Using a Lambda with Inappropriate Arity for Hash#default_proc=
=begin
Hi,

In message "Re: [ruby-core:26281] [Bug #2212] Using a Lambda with Inappropriate Arity for Hash#default_proc="
on Sun, 25 Oct 2009 04:51:30 +0900, Run Paint Run Run <redmine@ruby-lang.org> writes:

|Thank you. Could ...
matz (Yukihiro Matsumoto)
12:43 PM Bug #2263: typo in man/ruby.1
=begin
遠藤です。

2009年10月26日7:57 Hideo Konami <konami@kyoto-wu.ac.jp>:
>>In message "Re: [ruby-dev:39539] Re: [Bug #2263] typo in man/ruby.1"
>> on Sun, 25 Oct 2009 11:15:17 +0900, Yusuke ENDOH <mame@tsg.ne.jp> writes:
>>
>>|man は...
mame (Yusuke Endoh)
05:12 AM Bug #2263: typo in man/ruby.1
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39539] Re: [Bug #2263] typo in man/ruby.1"
on Sun, 25 Oct 2009 11:15:17 +0900, Yusuke ENDOH <mame@tsg.ne.jp> writes:

|man はともかく -help の -W[level] の説明が 80 文字に収まってないのですが、
|もう諦めたんでしょ...
matz (Yukihiro Matsumoto)
11:06 AM Revision 8d446fe1 (git): * array.c (rb_ary_cmp): Array#<=> returns nil when comparison fails
[ruby-core:26316]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
10:32 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

At Fri, 23 Oct 2009 08:37:40 +0900,
Suraj Kurapati wrote in [ruby-core:26244]:
> I get the following error when I call Kernel#require()
> inside a Ruby script that is being run by rb_require(),
> which itself is runnin...
nobu (Nobuyoshi Nakada)
03:49 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin

=end
sunaku (Suraj Kurapati)
03:31 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I am attaching a new "ruby_bind_stack.patch" file which
fixes a bug in my previous patch, adds a Changelog entry,
and renames the variables to better reflect their function.

Thanks for your consideration.
=end
sunaku (Suraj Kurapati)
10:30 AM Revision 327d58f7 (git): * hash.c (default_proc_arity_check): new support function.
* hash.c (rb_hash_initialize): should do arity check as #default_proc=.
[ruby-core:26281]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
06:44 AM Revision 66f5c5eb (git): * man/*.1: suppressed warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:26 AM Revision dc28ce1b (git): * ext/tk/lib/remote-tk.rb: typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
04:26 AM Revision 95945dbe (git): * ext/tk/lib/remote-tk.rb: typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
03:41 AM Revision 1996a4af (git): * ruby.c (usage): -T and -W descriptions updated. see
[ruby-dev:39539]
* man/ruby.1: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:06 AM Revision ce4e9dff (git): * io.c (io_fwrite): adjust stdio file position after direct write on
BSDish platforms. [ruby-core:26300]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:06 AM Revision 9350a574 (git): * io.c (io_fwrite): adjust stdio file position after direct write on
BSDish platforms. [ruby-core:26300]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/25/2009

11:45 PM Feature #2255: unicode parameters cannot be passed to ruby
Did you try latest ruby-trunk?
It should run already.
naruse (Yui NARUSE)
03:25 PM Feature #2126: ruby_init_stack() - add ability to specify or query max_stack_size
=begin
Hi Matz,

I added examples that use libpcl[1] to issue #2258 (note 18).

Please consider the "ruby_bind_stack.patch" file attached to
that issue as my proposed solution for this feature request.

Thanks for your considerat...
sunaku (Suraj Kurapati)
01:39 PM Feature #2126: ruby_init_stack() - add ability to specify or query max_stack_size
=begin
Hi Matz,

Please take a look at issue #2258 (from note 16 onwards) which
provides a practical example of the need for a stack-informing
function in the Ruby C API.

That example uses UNIX System V contexts to switch t...
sunaku (Suraj Kurapati)
03:19 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I am attaching variations of the ruby-ucontext examples
which use libpcl[1] instead of UNIX System V contexts,
as well as updated versions of the ruby-ucontext examples.

Each tarball has an "output.log" file whi...
sunaku (Suraj Kurapati)
01:50 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I am attaching two versions of the ruby-ucontext-full.tgz
example: one which uses a statically allocated stack,
and one which uses a dynamically allocated stack for the
UNIX System V context which houses the Ruby ...
sunaku (Suraj Kurapati)
01:28 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I am happy to announce that the problem is now solved! :-)

The attached 0001-add-ruby_bind_stack*.patch file adds a
ruby_bind_stack() function to the Ruby C API which allows
me to inform the GC about the stack b...
sunaku (Suraj Kurapati)
11:33 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Sorry, I meant that the filename is a valid VALUE in the
memory range that is scanned by mark_current_machine_context().

The filename is certainly *not* in Ruby's stack space.
=end
sunaku (Suraj Kurapati)
11:30 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

By adding a watchpoint on the filename, I found that it
was being free()d by rb_newobj_from_heap() (not directly
but via garbage_collect()) before allocating space for a
few lines read from the standard "date.rb" file (...
sunaku (Suraj Kurapati)
11:03 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

The segfault mentioned in my previous message no longer occurs
with the newer Ruby @ SVN r25457 plus my SET_STACK_END patch.

The ruby-ucontext-full.tgz example now runs to completion
without a segfault. However...
sunaku (Suraj Kurapati)
03:40 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

The root cause of the problem of gc_mark_locations() processing
(and corrupting) a portion of the SysV context's stack space was
the SET_STACK_END macro. It was blindly setting machine_stack_end
without respecting the...
sunaku (Suraj Kurapati)
02:47 PM Revision 7d6b2544 (git): merges r24546 from trunk into ruby_1_9_1.
--
* regparse.c (add_ctype_to_cc_by_range): fix the first
character bigger than sb_out was dropped.
* test/ruby/test_regexp.rb (TestRegexp#test_posix_bracket):
add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branch...
yugui (Yuki Sonoda)
02:46 PM Revision 3be5adeb (git): merges r24536 from trunk into ruby_1_9_1.
--
* configure.in (rubyhdrdir): fixed typo. [ruby-dev:39079]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:46 PM Revision 25a08521 (git): merges r24533 from trunk into ruby_1_9_1.
--
* doc/ChangeLog-1.8.0: add forgotten entry contributed by
TAKAHASHI Kaoru. [ruby-dev:39065]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:46 PM Revision 547ef3bc (git): merges r24531 from trunk into ruby_1_9_1.
--
* lib/delegate.rb (Delegator#method_missing): __FILE__ may contain
multi-byte characters. a patch from Kenta Murata in [ruby-dev:39066].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25481 b2dd03c8-39d4-4d8f-98ff...
yugui (Yuki Sonoda)
02:46 PM Revision 5a1fa790 (git): merges r24530 from trunk into ruby_1_9_1.
--
* vm.c (vm_exec): returning from lambda runs ensure section.
[Bug #1729]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:46 PM Revision 3a724e08 (git): merges r24513,r24514 and r24515 from trunk into ruby_1_9_1.
--
* class.c (rb_define_class_id_under, rb_define_module_id_under):
new functions to define a nested class/module with non-ascii
name.
* struct.c (make_struct): use name with encoding.
* struct.c (inspect_struct): ditto. [ruby-cor...
yugui (Yuki Sonoda)
02:46 PM Revision 0a84a18e (git): merges r24511 from trunk into ruby_1_9_1.
--
* insns.def, vm.c, vm_insnhelper.c, vm_insnhelper.h: check
definition of (classes)#=== for case/when optimization.
Fix Bug #1376 [ruby-core:23190].
* string.c (Init_String), bignum.c (Init_Bignum),
numeric.c (Init_Numeric): defi...
yugui (Yuki Sonoda)
02:46 PM Revision 3e26b951 (git): merges r24509 from trunk into ruby_1_9_1.
--
* string.c (rb_str_new_frozen): must not change encoding of frozen
shared string. [ruby-dev:39068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:46 PM Revision f935d5f4 (git): * test/ruby/test_m17n.rb (TestM17N#test_sprintf_s):
added an assertion for [ruby-list:46274].
see also r24506.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
02:45 PM Revision 0cfb043b (git): merges r25411 from trunk into ruby_1_9_1.
--
* marshal.c (w_symbol, r_symreal): fixed the order of symbol and
its encoding modifier, in order to make the dump readable from
1.8. [ruby-dev:39515]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25475 b2dd03c8...
yugui (Yuki Sonoda)
02:45 PM Revision d50e1bdc (git): merges r24488, r24489 and r24493 from trunk into ruby_1_9_1.
--
* marshal.c (class2path, w_unique, w_extended, w_class, w_uclass):
deal with non-ascii class path. [ruby-core:24790]
* marshal.c (r_unique, path2class, path2module, obj_alloc_by_path),
(r_object0): ditto.
* variable.c (rb_path_...
yugui (Yuki Sonoda)
02:45 PM Revision 3354c14c (git): merges r24443 from trunk into ruby_1_9_1.
--
* marshal.c (w_symbol r_symlink, r_symbol, r_object0): fix for
non-ascii symbols. loading such symbols can cause segfaults in
older versions. [ruby-core:24788]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@254...
yugui (Yuki Sonoda)
02:39 PM Revision d2bb312a (git): * 2009-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:39 PM Revision ecb16d6d (git): merges r24479 from trunk into ruby_1_9_1.
--
* ext/ripper/eventids2.c (token_to_eventid): added
keyword_do_LAMBDA. [ruby-dev:39049]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
11:15 AM Bug #2263: typo in man/ruby.1
=begin
遠藤です。

2009年10月25日11:01 Yugui <yugui@yugui.jp>:
> Yugui@メンテナ です。
>
> 2009年10月25日1:39 Yukihiro Matsumoto <matz@ruby-lang.org>:
>> |その default は -T[level] の level を省略した場合のデフォルト値を
>> |指してるんじゃないかと思います。
>>
>> あ、そうか。さっきの「コミットし...
mame (Yusuke Endoh)
11:08 AM Bug #2263: typo in man/ruby.1
=begin
-T[level] Turns on taint checking by setting $SAFE to 'level' (to 1 if 'level' is omitted)

というような感じではどうですか。ちょっと長過ぎますね。
=end
hasari (Hiro Asari)
11:01 AM Bug #2263: typo in man/ruby.1
=begin
Yugui@メンテナ です。

2009年10月25日1:39 Yukihiro Matsumoto <matz@ruby-lang.org>:
> |その default は -T[level] の level を省略した場合のデフォルト値を
> |指してるんじゃないかと思います。
>
> あ、そうか。さっきの「コミットしてください」は撤回します。
> なお、よりよい文面の提案は歓迎します。

はい。そういうことだと理解してます。より...
yugui (Yuki Sonoda)
01:39 AM Bug #2263: typo in man/ruby.1
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39534] Re: [Bug #2263] typo in man/ruby.1"
on Sun, 25 Oct 2009 00:39:49 +0900, Yusuke ENDOH <mame@tsg.ne.jp> writes:

|> -T[level] Turns on taint checks at the specified le...
matz (Yukihiro Matsumoto)
12:40 AM Bug #2263: typo in man/ruby.1
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39533] [Bug #2263] typo in man/ruby.1"
on Sun, 25 Oct 2009 00:31:59 +0900, Narihiro Nakamura <redmine@ruby-lang.org> writes:

|今日、とある方から「manの表示が間違ってませんか?」というご指摘を受けました。
|確認してみた所、セーフ...
matz (Yukihiro Matsumoto)
12:40 AM Bug #2263: typo in man/ruby.1
=begin
遠藤です。

2009年10月25日0:31 Narihiro Nakamura <redmine@ruby-lang.org>:
> 今日、とある方から「manの表示が間違ってませんか?」というご指摘を受けました。
> 確認してみた所、セーフレベルのデフォルト値がおかしいようです。
>
> $ man ruby
> (snip)
> -T[level] Turns on taint checks at the sp...
mame (Yusuke Endoh)
12:31 AM Bug #2263 (Closed): typo in man/ruby.1
=begin
nariです。

今日、とある方から「manの表示が間違ってませんか?」というご指摘を受けました。
確認してみた所、セーフレベルのデフォルト値がおかしいようです。

$ man ruby
(snip)
-T[level] Turns on taint checks at the specified level (default 1).

上記の部分は"(default 0)"ではないでしょうか?...
authorNari (Narihiro Nakamura)
11:07 AM Revision bc078709 (git): * object.c (rb_class_initialize): The inherited hook should be run
immediately after a new subclass is created, which is before
evaluating a given block. [Backport #621]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
11:04 AM Revision 2f5f40bd (git): * 2009-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:04 AM Revision b6163150 (git): * configure.in: Fix syntax error. when() is not defined in this
branch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
07:44 AM Feature #2266: Matrix and Complex [patch]
=begin

=end
marcandre (Marc-Andre Lafortune)
07:36 AM Feature #2266 (Closed): Matrix and Complex [patch]
=begin
Now that Ruby 1.9 has Complex as a builtin type, it would be interesting if Matrix provided the following instance methods:
#conj, alias conjugate
#imag, alias imaginary
#real,
#real?,
#rect, alias rectangular

Co...
marcandre (Marc-Andre Lafortune)
07:33 AM Feature #2265 (Closed): Matrix#empty? [patch]
=begin
Now that the Matrix library handles well empty matrices, how about a new instance method #empty?

diff --git a/lib/matrix.rb b/lib/matrix.rb
index b577ef3..45ef25e 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -38...
marcandre (Marc-Andre Lafortune)
06:44 AM Revision 475e705b (git): * ext/dl/handle.c (dlhandle_sym): fixed an invalid local variable
declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:51 AM Bug #2212: Using a Lambda with Inappropriate Arity for Hash#default_proc=
=begin
Thank you. Could the same logic be applied to Hash.new?

h = Hash.new &->(a){}
h[:key]
ArgumentError: wrong number of arguments (2 for 1)
from (irb):2:in `yield'
from (irb):2:in `default'
from (irb):2
fr...
runpaint (Run Paint Run Run)
01:57 AM Bug #2212 (Closed): Using a Lambda with Inappropriate Arity for Hash#default_proc=
=begin
This issue was solved with changeset r25455.
Run Paint, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
matz (Yukihiro Matsumoto)
04:34 AM Revision d64d462f (git): * io.c (io_cntl): F_DUPFD is platform dependent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:58 AM Feature #2034: Consider the ICU Library for Improving and Expanding Unicode Support
=begin
> If you think this is necessary, please start implementing. In my
> opinion, it will take you a lot of time, with very little advantage over
> a single-encoding sorting implementation.

Unicode strings need language to...
naruse (Yui NARUSE)
01:57 AM Feature #1697 (Closed): Object#<=>
=begin
This issue was solved with changeset r25453.
Marc-Andre, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
matz (Yukihiro Matsumoto)
01:19 AM Revision b6c007ac (git): * ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local
variable declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:09 AM Revision 74919cd9 (git): * test/dl/test_handle.rb: svn:eol-style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:11 AM Revision 3f6f9f87 (git): * ext/dl/handle.c (**) adding documentation
* test/dl/test_handle.rb (test_NEXT) testing the NEXT handle
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
12:11 AM Revision 1578edba (git): * ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles can
be enabled and disabled for closure on GC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
12:11 AM Revision 159e6439 (git): * ext/dl/handle.c (**) adding documentation
* test/dl/test_handle.rb (**) testing to_i and initialize
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
12:11 AM Revision 60f86b2e (git): * ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)
* test/dl/test_handle.rb (**) testing sym behavior
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
12:11 AM Revision c30de1e3 (git): * ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Adding
documentation and tests for current functionality.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)

10/24/2009

09:56 PM Revision a631b5df (git): * ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e tenderlovemaking (Aaron Patterson)
08:55 PM Revision c038e900 (git): * lib/matrix.rb (**): Optimization (up to 45% faster)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
05:01 PM Revision 55bf7f9d (git): * enum.c (enum_flat_map): new method that concatenates the values
from given block. also provides alias #collect_concat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
04:53 PM Revision ba3bfda7 (git): * hash.c (rb_hash_set_default_proc): checks arity of defalt_proc
of a Hash. [ruby-core:26087]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
04:48 PM Revision 5f01ed26 (git): * 2009-10-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:48 PM Revision 51f033f8 (git): * object.c (rb_obj_cmp): defines Object#<=>. [ruby-core:24063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)
04:37 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I debugged the segfault during Kernel#require inside
rb_require() inside rb_protect() inside a SysV context,
and found that the culprit is gc_mark_locations().

It is processing (and corrupting) a small portion o...
sunaku (Suraj Kurapati)
04:01 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I am attaching a new ruby-ucontext-full.tgz example test case
which statically allocates 4 MiB of memory for the System V
context's (which houses the embedded Ruby interpreter) stack.

Now the ruby-ucontext-full....
sunaku (Suraj Kurapati)
03:30 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I did some more debugging to find out why the value of "stdin"
was incorrect inside Ruby's prep_stdio() but correct in main().

In my compilation of the ruby-ucontext-full.tgz test case, the
value of "stdin" is a...
sunaku (Suraj Kurapati)
04:40 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Sorry, I meant that the assembler code thinks that "stdin"
is 0x8213008. The value is initially 0x8202fa4 when stored
in the EAX register, but at the time of the call instruction,
the value is 0x8213008.
=end
sunaku (Suraj Kurapati)
04:36 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I inspected the assembler code for the prep_stdio() function call
inside Init_IO() and found that the problem was *not* a corrupted
stack pointer as I had imagined, but instead, the wrong argument
value was being p...
sunaku (Suraj Kurapati)
02:21 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I ran the ruby-ucontext-full.tgz example on Ruby @ SVN trunk
in a debugger and found that the real problem was being hidden
by a call to rb_longjmp(). Below is the stack trace of the
real problem, just before the long ...
sunaku (Suraj Kurapati)
12:33 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

For your convenience, I am attaching two tarballs:

ruby-ucontext-half.tgz - example test case with
ruby_init() in main() and
rb_require() in SysV context

ru...
sunaku (Suraj Kurapati)
03:32 PM Bug #1532 (Closed): Improved matrix.rb [patch]
=begin
I'm closing this and moving the what remains to be done to a new issue.

RubySpec for lib/matrix have been brought up to date.

Some additional specs revealed three bugs, fixed in r25450, r25451 and r25452.
=end
marcandre (Marc-Andre Lafortune)
07:04 AM Feature #2260: better access with GC_DEBUG
=begin
Hi,

In message "Re: [ruby-core:26262] [Feature #2260] better access with GC_DEBUG"
on Sat, 24 Oct 2009 06:31:44 +0900, Roger Pack <redmine@ruby-lang.org> writes:

|It would be nice to be able to know where [what line of...
matz (Yukihiro Matsumoto)
06:31 AM Feature #2260 (Rejected): better access with GC_DEBUG
=begin
It would be nice to be able to know where [what line of code] objects were allocated one.

For instance
ObjectSpace.each_object{|o| puts o.debug_info }

or something like

>> a = 'b'
>> ObjectSpace.describe(a)
...
rogerdpack (Roger Pack)
06:05 AM Revision 66ed25f6 (git): * lib/matrix (transpose): bug fix for Matrix.empty(0,42).t
cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
06:04 AM Revision 90d244ad (git): * lib/matrix (column): handle negative arguments. cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Marc-Andre Lafortune
06:04 AM Revision e5af8e94 (git): * lib/matrix (minor): Also handle negative arguments like Array#[]
cf [ruby-core:23598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Marc-Andre Lafortune
01:47 AM Bug #2142 (Closed): DL::Handle#initialize should call rb_secure(2)
=begin
This issue was solved with changeset r25448.
Aaron, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
=end
Anonymous

10/23/2009

11:37 PM Revision 5d6440c7 (git): * class.c (rb_class_new): move class check to rb_check_inheritable().
* class.c (rb_check_inheritable): should not allow subclass of
class Class. [ruby-core:26225]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
11:35 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I ran a new experiment where the Ruby interpreter is completely enclosed by a System V context (previously it was initialized on
the main() stack, and then run inside a System V context).

Attached is a tarball con...
sunaku (Suraj Kurapati)
12:24 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

Below is a full GDB backtrace of the bug in Ruby 1.9.2dev.
I hope this is more useful than the output I posted so far.

Thanks for your consideration.

###############################################################
...
sunaku (Suraj Kurapati)
12:13 PM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I am attaching updated "extconf.rb" and "main.c" files
which now support Ruby 1.8 and native ucontext.h location.

With these updated files, I have found that the example
test case fails in the same way on Ruby 1...
sunaku (Suraj Kurapati)
09:20 AM Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

Below is the result of running the example test case attached
to this issue on the Ruby Issue Tracker with Ruby @ SVN trunk.

The only difference is that I see:

[BUG] Segmentation fault

Instead of:

...
sunaku (Suraj Kurapati)
08:37 AM Bug #2258 (Closed): Kernel#require inside rb_require() inside rb_protect() inside SysV context fails
=begin
Hi,

I get the following error when I call Kernel#require()
inside a Ruby script that is being run by rb_require(),
which itself is running inside rb_protect(), which in
turn is running inside a UNIX System V context.
...
sunaku (Suraj Kurapati)
10:29 PM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
Indeed. I have some code which expect the fd to be auto-closed. Autoclose should be on by default.
=end
hongli (Hongli Lai)
05:55 PM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
Hi,

At Fri, 23 Oct 2009 07:05:23 +0900,
Mike Pomraning wrote in [ruby-core:26242]:
> IMHO, if you know enough about fds to dress one up as an
> IO, you know enough to judge whether Ruby should close it
> for you. Ruby can...
nobu (Nobuyoshi Nakada)
07:05 AM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
In comment 2 Nobuyoshi Nakada writes:
> This is a patch to add :autoclose option to IO.for_fd

Thanks! IIUC, your patch requires one to explicitly set
:autoclose => false to avoid this behavior. However, I'd
argue tha...
pilcrow (Mike Pomraning)
06:35 PM Bug #2226 (Assigned): case 文の式が省略され when 節に配列展開があるときの挙動
=begin

=end
naruse (Yui NARUSE)
04:44 PM Revision 5ee251bd (git): * ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)
[ruby-core:25762]
* ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
tenderlovemaking (Aaron Patterson)
03:38 PM Revision 1eef1cdc (git): * 2009-10-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:38 PM Revision 843acddb (git): * io.c (io_cntl): update max file descriptor by the result of
fcntl(F_DUPFD).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:30 PM Revision 525be7f0 (git): fix a typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
08:00 AM Bug #2016: Windows (win32.c) command line argument parsing bug
=begin
This might be related (these commands work with 1.9, but not 1.8 for me [mswin/mingw])


C:\dev\digitalarchive_trunk>ruby -e " \"3\" " \""\"
-e:1: unterminated string meets end of file


C:\dev\digitalarchive_trunk>...
rogerdpack (Roger Pack)
05:26 AM Revision 4f87d95c (git): * 2009-10-23
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:25 AM Revision 32df7768 (git): * configure.in (target, target_alias): replace with real cpu.
* mkconfig.rb: build* are not needed in rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:25 AM Revision 606f6c78 (git): * configure.in (target, target_alias): replace with real cpu.
* mkconfig.rb: build* are not needed in rbconfig.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:22 AM Revision a56b1bc2 (git): * configure.in (warnflags): use -Wextra only when
-Wno-missing-field-initializers is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:06 AM Revision 9a8d0e83 (git): * configure.in (optflags): removed -fomit-frame-pointer by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:13 AM Revision d645c25a (git): * lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always
non-nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

10/22/2009

10:58 PM Feature #2255: unicode parameters cannot be passed to ruby
For me, internal encoding doesn't matter, since the conversion is pretty easy. But important is that the following example will work properly:
```
C:\>echo puts ARGV[0] > uparam.rb
C:\>ruby\bin\ruby.exe uparam.rb của_zufällige_žlu...
vo.x (Vit Ondruch)
09:29 PM Feature #2255: unicode parameters cannot be passed to ruby
Hello,
In message "[ruby-core:26234] [Feature #2255] unicode parameters cannot be passed to ruby"
on Oct.22,2009 21:05:27, <redmine@ruby-lang.org> wrote:
> Why? May be wmain is not the right thing, but at least Unicode parameter...
usa (Usaku NAKAMURA)
09:05 PM Feature #2255: unicode parameters cannot be passed to ruby
> It doesn't make sense.
Why? May be wmain is not the right thing, but at least Unicode parameters should be possible to accept if it is windows application (probably using `GetCommandLineW` API function). UTF-8 is nice but that is di...
vo.x (Vit Ondruch)
08:53 PM Feature #2255: unicode parameters cannot be passed to ruby
Hello,
In message "[ruby-core:26232] [Feature #2255] unicode parameters cannot be passed to ruby"
on Oct.22,2009 20:42:24, <redmine@ruby-lang.org> wrote:
> On windows, Ruby should provide wmain to allow passing unicode parameter...
usa (Usaku NAKAMURA)
08:42 PM Feature #2255 (Closed): unicode parameters cannot be passed to ruby
On windows, Ruby should provide `wmain` to allow passing unicode parameters (especially file paths are of interest).
vo.x (Vit Ondruch)
10:35 PM Revision 01be0195 (git): * version.c (ruby_initial_load_paths): moved terminating semicolon.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:32 PM Revision e9af789d (git): * configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnable
ruby without current libraries.
* common.mk (rdoc): use XRUBY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
10:28 PM Revision 2e5e8fd8 (git): * configure.in (warnflags): use -Wextra instead of -Wall.
* gc.c (mark_current_machine_context): get rid of warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:58 PM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
Hi,

At Thu, 22 Oct 2009 12:43:37 +0900,
Mike Pomraning wrote in [ruby-core:26222]:
> 4. Why this is very bad:
>
> In practice, fds passed to for_fd() may be exposed by
> extension modules, which modules are responsible f...
nobu (Nobuyoshi Nakada)
02:26 PM Feature #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
Mike Pomraning <redmine@ruby-lang.org> wrote:
> Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
> http://redmine.ruby-lang.org/issues/show/2250

> 2. Observed behavior:
>
> Instead, an IO ob...
normalperson (Eric Wong)
12:43 PM Feature #2250 (Rejected): IO::for_fd() objects' finalization dangerously closes underlying fds
=begin
1. Expected behavior:

An IO object created by IO::for_fd(a_socket_fd) should *not* call close(2) on its underlying fd upon finalization. The object did not allocate the fd, and so cannot safely nor politely close it.

...
pilcrow (Mike Pomraning)
04:40 PM Bug #2253 (Closed): should Class.new(Class) raise TypeError?
=begin
Class.new(Class) does not raise TypeError as reported in [ruby-dev:34114].

$ ruby-1_8 -ve 'Class.new(Class)'
ruby 1.8.8dev (2009-10-22 revision 25430) [i686-linux]
$ ruby-1_8 -ve 'class Foo < Class; end'
ruby 1.8...
shugo (Shugo Maeda)
01:40 PM Bug #2251 (Assigned): URI.parse accepts strings with invalid characters
=begin

=end
naruse (Yui NARUSE)
12:49 PM Bug #2251 (Closed): URI.parse accepts strings with invalid characters
=begin
The regexes used in URI::Parser's initialize_regexp use ^ and $ rather than \A and \Z:

399 # for URI::split
400 ret[:ABS_URI] = Regexp.new('^' + pattern[:X_ABS_URI] + '$', Regexp::EXTENDED)
401 ...
emerose (Sam Quigley)
12:12 PM Revision 359d9323 (git): * class.c (rb_obj_basic_to_s_p): typo. Please become familiar with
the ANSI style.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
11:22 AM Revision 4079c469 (git): * test/ruby/envutil.rb (assert_in_out_err): test_stdout and
test_stderr should be an array.
* test/ruby/test_rubyoptions.rb (test_notfound): test_stdin of
assert_in_out_err should be a string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
09:31 AM Feature #2065: An ancestors iterator
=begin
Actually I think that gets to the heart of the matter. It's not sufficient to cache the ancestors because I want to iterate the most current class hierarchy. Doing so allows added features to really be method-like in their inhe...
bahuvrihi (Simon Chiang)
08:59 AM Revision bd1990bf (git): * lib/fileutils.rb (FileUtils#fu_get_uid, fu_get_gid): Do not
convert an integer back and forth.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:51 AM Revision da54a458 (git): * lib/fileutils.rb (FileUtils#fu_get_uid, fu_get_gid): Do not
convert an integer back and forth.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
08:29 AM Revision c69d9b44 (git): * parse.y (arg_prepend): removed. a patch from Mikhail T. in
[ruby-core:26217].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:29 AM Revision 6221d16f (git): * parse.y (arg_prepend): removed. a patch from Mikhail T. in
[ruby-core:26217].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:27 AM Revision 8d018b22 (git): * intern.h (rb_thread_join): added prototype. a patch from
Mikhail T. in [ruby-core:26217].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
08:19 AM Bug #2111 (Open): Error:test_rm_f(TestFileUtils)
=begin
直っていないように見えます。

% ruby-trunk -v
ruby 1.9.2dev (2009-10-22 trunk 25429) [i686-linux]
% ruby-trunk -r rake -r mkmf test/fileutils/test_fileutils.rb
(略)
1) Failure:
test_rm_pathname(TestFileUtils) [test/fileutils/tes...
znz (Kazuhiro NISHIYAMA)
06:37 AM Bug #616: instance_eval and Module#to_s
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:39521] [Bug #616] instance_eval and Module#to_s"
on Wed, 21 Oct 2009 19:30:25 +0900, Yui NARUSE <redmine@ruby-lang.org> writes:

|これの (2) って結局どうするんですか

どうしましょうね。挙動としては

* 名前がな...
matz (Yukihiro Matsumoto)
01:00 AM Revision 3f0d0b93 (git): * *.[chy]: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
 

Also available in: Atom