Project

General

Profile

Activity

From 07/04/2009 to 07/10/2009

07/10/2009

11:37 PM Bug #1753: non success open client socket not detected on windows
=begin
This patch will fix the problem.

--- win32.c 2009-01-16 00:37:20.000000000 +0900
+++ win32.c.new 2009-07-10 23:34:06.000000000 +0900
@@ -2397,6 +2397,7 @@
r = WSAGetLastError();
if (r != W...
phasis68 (Heesob Park)
10:38 PM Bug #1753: non success open client socket not detected on windows
=begin
I get this too [for mingw 1.9]. Odd.
=r
=end
rogerdpack (Roger Pack)
10:12 PM Revision c51a9689 (git): * ext/readline/readline.c (readline_attempted_completion_function):
array length is long.
* ext/readline/readline.c (readline_s_get_filename_quote_characters):
missing type of self.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
09:38 PM Bug #1757 (Closed): cygwin-1.7, gcc4-4.3, and ruby-1.9. method `inspect' called on hidden object (0x10046720) (NotImplementedError)
=begin
I tried compiling ruby-1.9.2-r24017 on cygwin-1.7.0 using gcc-4.3 as follows:

$ cygcheck -f /bin/cygwin1.dll /usr/bin/gcc-4
cygwin-1.7.0-50
gcc4-core-4.3.2-2

$ ../ruby-1.9.2-r24017/configure --program-suffix="-19" -...
neomjp (neomjp neomjp)
06:31 PM Revision 91988781 (git): Fix method scoping bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
05:37 PM Revision a88589c7 (git): * random.c (limited_rand): expands to long before shift so that
the result does not overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:37 PM Bug #1741 (Closed): Enumerable#join with Nested Enumerables
=begin
Applied in changeset r24017.
=end
nobu (Nobuyoshi Nakada)
03:38 PM Revision 665787ea (git): Added FCNTL inclusion to fix a compile error with solaris (backport from r22812)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
03:16 PM Revision 1dabc36b (git): * random.c (rand_init): got rid of buffer overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
03:11 PM Revision 38867cc1 (git): * array.c (ary_join_1): should recurse for element array.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:50 PM Revision 69c8bf73 (git): Fixed ostruct recursion inspection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
02:21 PM Revision 161f0a16 (git): io.c (io_strip_bom): ungetbyte third byte when UTF-16LE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:21 PM Revision f188db31 (git): Fix condition of second byte of UTF-16LE/UTF-32LE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:47 PM Revision cdeed3b3 (git): * ChangeLog: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:17 PM Revision 67016f36 (git): cosmetic changes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
01:03 PM Revision 257c314f (git): * ext/readline/extconf.rb: checked rl_refresh_line in readline.
* ext/readline/readline.c (readline_s_refresh_line): add new
method, a patch from Koichiro Ohba. see [ruby-list:45922].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kouji (Kouji Takao)
12:13 PM Revision 89fd5213 (git): * ext/readline/extconf.rb: checked rl_line_buffer and rl_point in
readline.
* ext/readline/readline.c (readline_s_get_line_buffer): new method.
(readline_s_get_point): new method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
kouji (Kouji Takao)
11:41 AM Revision 5d8b373b (git): * test/ruby/test_array.rb (test_join2): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:27 AM Bug #1756 (Closed): Segfault with define_method and Implicit Argument Form of super
=begin
Applied in changeset r24012.
=end
nobu (Nobuyoshi Nakada)
09:52 AM Bug #1756 (Closed): Segfault with define_method and Implicit Argument Form of super
=begin
$ cat super.rb
lambda do
Class.new do
define_method :a do
super
end.call
end
end.call

$ ruby -v super.rb
super.rb:4: [BUG] Segmentation fault
ruby 1.9.2dev (2009-07-0...
runpaint (Run Paint Run Run)
07:30 AM Revision af8f8e5b (git): * array.c (recursive_join): use obj to tell if recursion occurs.
[ruby-core:24150]
* enum.c (enum_join): reverted r23966. [ruby-core:24196]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:51 AM Revision 5e2a28d1 (git): Add test for marshaling regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:51 AM Revision 143d1d84 (git): * marshal.c (r_object0): set encoding only if the encoding is not US-ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
05:44 AM Revision 234485dc (git): * random.c (struct MT): ruby already assumes int has 32bit at
least, so no needs to use long.
* random.c (rand_init):
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:28 AM Bug #1755: IO#reopen Doesn't Fully Associate with Given Stream on 1.9; Ignores pos on 1.8
=begin
('io-reopen2.rb' should be 'io-reopen.rb' in the above examples. :-()
=end
runpaint (Run Paint Run Run)
05:25 AM Bug #1755 (Closed): IO#reopen Doesn't Fully Associate with Given Stream on 1.9; Ignores pos on 1.8
=begin
$ cat io-reopen.rb
file1 = File.open('a')
file2 = File.open('b')

file1.gets # => "ant\n"
file2.gets # => "1\n"

file1.reopen(file2)

p file1.gets # => "2\n"

$ echo -e "ant\nbear\nc...
runpaint (Run Paint Run Run)
02:41 AM Revision 5cc13fcb (git): * include/ruby/ruby.h (rb_obj_{untrust,untrusted,trust}): added
prototypes. [ruby-dev:38756]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:25 AM Revision bee49b34 (git): * vm_insnhelper.c (vm_search_superclass): checks for implicit
argument passing before method search. [ruby-core:24244]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

07/09/2009

11:57 PM Feature #802 (Closed): IO.open optional argument to properly handle BOMs
=begin
Applied in changeset r24001.
=end
naruse (Yui NARUSE)
11:57 PM Bug #650 (Closed): Marshal.load raises RegexpError
=begin
Applied in changeset r23999.
=end
naruse (Yui NARUSE)
02:31 PM Bug #650: Marshal.load raises RegexpError
=begin
修正案です。エンコーディングを見て、UTF-8でない場合は1.8からとみなして、s/\\u/u/gしています。

diff --git a/marshal.c b/marshal.c
index 0c44eba..d572ecd 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1393,8 +1393,19 @@ r_object0(struct load_arg *arg, int *ivp...
naruse (Yui NARUSE)
10:22 PM Revision b16c326d (git): * parse.y (parser_data_type): typed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
10:18 PM Revision 081625d1 (git): * error.c (compile_warn_print, warn_print): fixed false warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:51 PM Bug #1753 (Closed): non success open client socket not detected on windows
=begin
Here the code and execution with different ruby version :


D:\usr\ruby\local\dsd17>type z_essai.rb
require 'socket'

p "*************************************************"
p [RUBY_PLATFORM,RUBY_VERSION,RUBY_RELEASE...
raubarede (regis d'aubarede)
07:12 PM Revision e803164d (git): Minor fixes to x64 sitedir/libdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
06:48 PM Revision b4b5d8f7 (git): Removed private on to_date and to_datetime.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
06:29 PM Revision 6dd00f0e (git): ext/socket/extconf.rb: Corrected function definitions to specify return values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
06:16 PM Revision 49109186 (git): Pendantic change to remove surplus comma.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
06:06 PM Bug #1322: define_method scope bug
=begin

=end
shyouhei (Shyouhei Urabe)
06:05 PM Revision 71abe58a (git): Fixed warning: passing argument 1 of 'add_freelist' makes pointer from integer without a cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
05:24 PM Revision bc50de4b (git): Stopgap fix for gc.c based segmentation faults.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e wyhaines (Kirk Haines)
04:02 PM Revision 1dc339e5 (git): * 2009-07-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:02 PM Revision f69af8e8 (git): Remove debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e naruse (Yui NARUSE)
02:47 PM Revision 634cfdc6 (git): Set encoding and strip bom when modeenc string is "r:foo-bom" [ruby-dev:37236]
* include/ruby/io.h (FMODE_STRIP_BOM): new constant.
* io.c (io_encname_bom_p): judge whether the encoding name
is *-bom or not.
(parse_mode_enc): drop "-bom".
(rb_io_modestr_fmode): set FMODE_STRIP_BOM if needed.
(rb_io_extract...
naruse (Yui NARUSE)
02:47 PM Revision a113d4f8 (git): * 2009-07-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
02:47 PM Revision e6989a7e (git): * marshal.c (r_object0): replace \u by u when the regexp is
made by Ruby 1.8. [ruby-dev:36750]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:15 PM Bug #1747: Immediate Values Can be Frozen
=begin
Hi,

2009/7/9 Run Paint Run Run <redmine@ruby-lang.org>:
> Bug #1747: Immediate Values Can be Frozen
> http://redmine.ruby-lang.org/issues/show/1747
>
> Author: Run Paint Run Run
> Status: Open, Priority: Normal
> Categor...
mame (Yusuke Endoh)
08:22 AM Bug #1747 (Closed): Immediate Values Can be Frozen
=begin
On 1.8 you couldn't freeze an immediate. On 1.9 you can. Presumably this is a bug.

$ ruby -ve 'a=true;a.freeze;p a.frozen?'
ruby 1.9.2dev (2009-07-08 trunk 23995) [i686-linux]
true

$ ruby8 -ve 'a=true;a.free...
runpaint (Run Paint Run Run)
11:30 AM Bug #1750 (Rejected): Inconsistent Behavior on 1.8 and 1.9 of String#[]= with Single Fixnum Argument
=begin
Brian Ford posted the following to [ruby-core:23706], but it seems to have been passed over, so I'm submitting it as a ticket. Hopefully we can clarify this behaviour, then get the affected RubySpec tests fixed. :-)

####

...
runpaint (Run Paint Run Run)
09:52 AM Bug #1749 (Closed): Change in How $~ is Restored After String#sub/String#gsub with a Block
=begin
I wrote the following in [ruby-core:23699], but it seems to have been missed, so I'm filing it as a ticket. There are 3 RubySpec failures relating to this issue, so it would be great to determine what's what. :-)

There's bee...
runpaint (Run Paint Run Run)
09:05 AM Revision 7adb8681 (git): merge revision(s) 23257:
* eval.c (proc_invoke): shares dmethod scope local variables.
a patch from coderrr at [ruby-core:23050]
* gc.c (obj_free): do not free cloned scope local variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches...
shyouhei (Shyouhei Urabe)
08:54 AM Bug #1748 (Rejected): Kernel.puts(nil) => "\n" on 1.9; "nil\n" on 1.8
=begin
Is this intentional?

$ ruby -ve 'Kernel.puts(nil)'
ruby 1.9.2dev (2009-07-08 trunk 23995) [i686-linux]

$ ruby8 -ve 'Kernel.puts(nil)'
ruby 1.8.8dev (2009-07-01) [i686-linux]
nil
=end
runpaint (Run Paint Run Run)
05:41 AM Bug #1745 (Rejected): Module#autoload No Longer Raises where 1.8 Does
=begin
There has been a change between 1.8 and 1.9 with Module#autoload when the autoloaded file doesn't declare the named class and the module is already open:

$ cat /tmp/autoload.rb
module Autoload
end
module Autoloa...
runpaint (Run Paint Run Run)
04:41 AM Bug #1744 (Closed): Error with Marshal dump/load on a delegated class.
=begin
Instance variables are not handled when using Marshal with a delegated class.

Here is an example :
on Ruby 1.8, the instance variable @var will be copied fine.
on Ruby 1.9.1, it is set to nil.

It seems to only occur...
DarKo (Guillaume Delugré)

07/08/2009

09:03 PM Feature #1673: let irb use pretty_inspect if possible
=begin
けいじゅ@いしつかです.

In [ruby-dev:38746] the message: "[ruby-dev:38746] Re: [feature:trunk] let irb use pretty_inspect if possible", on Jul/08 13:18(JST)
Yukihiro Matsumoto writes:

>まつもと ゆきひろです

>|trunkにリリースしました.
>|
>|irb --...
keiju (Keiju Ishitsuka)
01:19 PM Feature #1673: let irb use pretty_inspect if possible
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:38744] Re: [feature:trunk] let irb use pretty_inspect if possible"
on Tue, 7 Jul 2009 22:42:04 +0900, keiju@ishitsuka.com (石塚圭樹) writes:

|trunkにリリースしました.
|
|irb --inspect pp
|
...
matz (Yukihiro Matsumoto)
02:18 PM Revision d43de333 (git): * complex.c (nucomp_div): omitted zero division check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
12:01 PM Revision 855d0d1a (git): * lib/irb/inspector.rb: forget svn add.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e keiju (Keiju Ishitsuka)
10:58 AM Revision a563f713 (git): merge revision(s) 23201:
* eval.c (rb_thread_remove): stops timer thread unless other
threads exist. [ruby-core:18444]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
shyouhei (Shyouhei Urabe)
10:10 AM Revision a7c32bf8 (git): * error.c (rb_check_type): rejects typed data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:28 AM Revision abbd115c (git): * proc.c ({proc,binding,method}_data_type): typed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:53 AM Bug #1741 (Closed): Enumerable#join with Nested Enumerables
=begin
Enumerable#join acts oddly for nested Enumerables. Should the output not be the same for both Array and E?

$ cat /tmp/join.rb
class E
include Enumerable
def initialize(*args)
@e = args
...
runpaint (Run Paint Run Run)
08:24 AM Bug #1732: Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join
=begin
Thanks, Ryan. :-)

The remaining difference between Array#join and Enumerable#join w.r.t taint/trust involves empty data structures.

$ ruby -e 'p Array.new.untrust.join(":").untrusted?'
false
$ ruby -e 'p Hash.new.un...
runpaint (Run Paint Run Run)
08:13 AM Revision ebd13e3e (git): * proc.c ({proc,method}_data_type): typed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:47 AM Revision ca93e005 (git): * file.c (rb_file_s_basename): returns new string instead of
shared string from FilePathStringValue(). [ruby-core:24199]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:17 AM Bug #1728: gem installed binaries don't honor program-suffix
=begin
Can this discussion be moved to the rubygems-developers mailing list? It's the best place to discuss it.

http://rubyforge.org/mailman/listinfo/rubygems-developers
=end
drbrain (Eric Hodel)
12:02 AM Revision dddd406b (git): Update ext/.document with extensions that appear to have documentation.
Fixes #1738.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
drbrain (Eric Hodel)

07/07/2009

11:30 PM Bug #1728: gem installed binaries don't honor program-suffix
=begin
I talked with a friend and I realized I'm not explaining this very well. Let me try again.

The reason --format-executable should default to on is because the binaries created by "gem" have the name of the "ruby" tied to tha...
docwhat (Christian Höltje)
10:45 PM Bug #1728: gem installed binaries don't honor program-suffix
=begin
Eero said in comment #3:
> Personally, I would expect the suffix to only affect the
> programs installed by that script, not "child" programs
> thereof.

I think the default should cause the least amount of confusion po...
docwhat (Christian Höltje)
09:54 PM Bug #1728: gem installed binaries don't honor program-suffix
=begin
Excerpts from rubymine message of Tue Jul 07 15:42:01 +0300 2009:
> Issue #1728 has been updated by Christian Höltje.
>
>
> Why isn't that the default, then?

Personally, I would expect the suffix to only affect the
prog...
rue (Eero Saynatkari)
09:41 PM Bug #1728: gem installed binaries don't honor program-suffix
=begin
Why isn't that the default, then?
=end
docwhat (Christian Höltje)
06:18 PM Bug #1728 (Rejected): gem installed binaries don't honor program-suffix
=begin
Use gem install --format-executable.

You can make this the default by setting in ~/.gemrc

install: --format-executable
update: --format-executable
=end
drbrain (Eric Hodel)
10:42 PM Feature #1673: let irb use pretty_inspect if possible
=begin
けいじゅ@いしつかです.

trunkにリリースしました.

irb --inspect pp

で pp を使うようになります. あと, おまけで, yaml と marshal もつけて
あります(^^;;;

使い方.

* コマンドライン

% irb --inspect [raw|p|pp|yaml|marshal|...]

または, ブロック指定で

% irb -r yaml --inspect "{|...
keiju (Keiju Ishitsuka)
08:28 PM Revision 9e607430 (git): * include/ruby/ruby.h:
rename
"...TypeStruct" and "typed_struct" to
"TypedData..." and "typeddata", respectively.
rename
rb_data_type_t#name to
rb_data_type_t#wrap_struct_name.
* error.c, gc.c, iseq.c, vm.c: ditto.
git-svn-id: svn+ssh://ci.ruby-la...
ko1 (Koichi Sasada)
06:18 PM Bug #1732: Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join
=begin

On Jul 6, 2009, at 20:28 , Run Paint Run Run wrote:

> matz, I'm sorry to be annoying, but I don't understand this revision.

I can't vouch for your "annoyingness" to matz, but I can say that
you're finding really good s...
zenspider (Ryan Davis)
12:49 PM Bug #1732: Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join
=begin
Hi,

In message "Re: [ruby-core:24176] [Bug #1732] Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join"
on Tue, 7 Jul 2009 12:28:20 +0900, Run Paint Run Run <redmine@ruby-lang.org> writ...
matz (Yukihiro Matsumoto)
12:28 PM Bug #1732: Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join
=begin
> It's because Enumerable#to_a doesn't transfer its taintness and
> trustworthiness. Should it do?

I assumed it would, because Array#to_a/#join does. But I don't pretend to be a language designer. ;-)

matz, I'm sorry...
runpaint (Run Paint Run Run)
02:45 PM Bug #1737 (Closed): Enumerable#join: Segfault Resulting from Recent Commit
=begin
Applied in changeset r23979.
=end
nobu (Nobuyoshi Nakada)
11:54 AM Bug #1737 (Closed): Enumerable#join: Segfault Resulting from Recent Commit
=begin
It looks like one of yesterday's commits is causing a segfault. Yesterday this code exposed bug #1731, but didn't segfault, so presumably either the fix or another commit made in the meantime is the cause. Possibly r23966?

U...
runpaint (Run Paint Run Run)
01:13 PM Revision 26a1d97d (git): rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
11:36 AM Revision c7fa0c72 (git): * bin/irb, lib/irb.rb lib/irb/*: irb-0.9.6, extend inspect-mode
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e keiju (Keiju Ishitsuka)
10:50 AM Feature #578: add method to disassemble Proc objects
=begin
Another possiblility would be to add an instruction-sequence method (iseq) into Proc. Off of the instruction sequence, one could use the methods like disasm or to_a.

The actual additional code (put in the right place) for th...
rocky (Rocky Bernstein)
10:43 AM Feature #578: add method to disassemble Proc objects
=begin
Hi,

At Sun, 21 Sep 2008 03:02:44 +0900,
Roger Pack wrote in [ruby-core:18762]:
> I wasn't sure how to patch
> RubyVM::InstructionSequence.disassemble
> to work with proc objects AND methods, so added a new method
> RubyV...
nobu (Nobuyoshi Nakada)
10:17 AM Bug #1353 (Closed): io does not convert str when ext == intern
=begin
Applied in changeset r23976.
=end
naruse (Yui NARUSE)
08:00 AM Revision 649237de (git): * gc.c (rb_gc_call_finalizer_at_exit): deal with typed struct like
as obj_free().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:54 AM Revision ac3c2866 (git): * error.c (rb_typed_struct_is_kind_of): new function to see if the
given typed struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:23 AM Revision 74a6cc87 (git): * vm.c ({env,vm,thread}_data_type): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:44 AM Revision 7bb9cc23 (git): * error.c (rb_check_typed_struct): new function to check typed
struct.
* include/ruby/ruby.h (Check_TypedStruct, Data_Get_TypedStruct):
new macro to check typed struct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:36 AM Revision 0f2d1527 (git): * enum.c (DEFINE_ENUMFUNCS): included function signature.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
04:34 AM Revision e895bc3c (git): * enum.c (rb_enum_join): non-nil separator must be convertible to
String. [ruby-core:24172]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:55 AM Revision 9041ac42 (git): * enum.c (rb_enum_join): should propagate taint to the return
value. the change was overridden by r23967. [ruby-core:24176]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
02:56 AM Revision 450f7842 (git): * gc.c (GC_PROF_SET_MALLOC_INFO, GC_PROF_SET_HEAP_INFO): simplified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
01:15 AM Revision 999123c1 (git): * io.c (rb_io_ext_int_to_encs): Set external encoding if
ext==intern. [ruby-dev:38278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
01:12 AM Revision c19129be (git): * 2009-07-07
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
01:12 AM Revision 729d726e (git): * iseq.c: provisional type fixes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

07/06/2009

09:04 PM Bug #1733: require does not look at current directory anymore ?
=begin
Matz, thanks for the explanation/clarification.

Nobu, the RUBYLIB environment variable is a good enough solution. Thanks.
=end
Chauk-Mean (Chauk-Mean Proum)
09:45 AM Bug #1733: require does not look at current directory anymore ?
=begin
Hi,

At Mon, 6 Jul 2009 01:53:31 +0900,
Chauk-Mean Proum wrote in [ruby-core:24153]:
> Replacing require 'a' with require './a' or require_relative
> 'a' works.
> But this introduces incompatibility issues with code that
>...
nobu (Nobuyoshi Nakada)
07:57 AM Bug #1733: require does not look at current directory anymore ?
=begin
Hi,

In message "Re: [ruby-core:24153] [Bug #1733] require does not look at current directory anymore ?"
on Mon, 6 Jul 2009 01:53:31 +0900, Chauk-Mean Proum <redmine@ruby-lang.org> writes:

|In ruby-1.9 trunk, the behavi...
matz (Yukihiro Matsumoto)
01:53 AM Bug #1733 (Rejected): require does not look at current directory anymore ?
=begin
In ruby-1.9 trunk, the behaviour of require has changed.
Require does not look at the current directory anymore.
Is this intentional ?

$ cat a.rb
puts "Hello World"

$ cat b.rb
require 'a'
puts "Goodbye World"
...
Chauk-Mean (Chauk-Mean Proum)
08:46 PM Bug #1092 (Rejected): miniruby cause SEGV on x64-mswin64_90
=begin
So, not a bug.
=end
usa (Usaku NAKAMURA)
04:26 PM Bug #1329: Ruby 1.8.8 で "p eval('0' + '+0.1'*n)" が Segmentation Fault を発生させる
=begin
1.8.6 also has this problem.
=end
shyouhei (Shyouhei Urabe)
02:52 PM Bug #1353 (Assigned): io does not convert str when ext == intern
=begin

=end
naruse (Yui NARUSE)
10:07 AM Bug #1732 (Closed): Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join
=begin
Applied in changeset r23971.
=end
matz (Yukihiro Matsumoto)
09:14 AM Bug #1732: Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join
=begin
Hi,

At Mon, 6 Jul 2009 00:31:57 +0900,
Run Paint Run Run wrote in [ruby-core:24152]:
> Array#join transfers self's taintedness and trustworthiness
> to its return value. If an Array is tainted, so is the
> concatenation of...
nobu (Nobuyoshi Nakada)
12:31 AM Bug #1732 (Closed): Inconsistency in Transference of Inherited Traits ('Tainted' and 'Untrusted') with #join
=begin
Array#join transfers self's taintedness and trustworthiness to its return value. If an Array is tainted, so is the concatenation of its elements:

>> ['a'].taint.join.tainted?
=> true
>> ['a'].untrust.join.untrusted...
runpaint (Run Paint Run Run)
09:37 AM Bug #1722 (Closed): Curried Lambda Returns False for #lambda? Despite Having No "Tricks"
=begin
Applied in changeset r23970.
=end
nobu (Nobuyoshi Nakada)
09:07 AM Bug #1731 (Closed): Enumerable#join with Recursive Structure: "invalid inspect_tbl list for :to_a"
=begin
Applied in changeset r23966.
=end
nobu (Nobuyoshi Nakada)
04:33 AM Bug #1731: Enumerable#join with Recursive Structure: "invalid inspect_tbl list for :to_a"
=begin
Apologies if this is obvious, but I just noticed that if you rescue the aforementioned exception then say File.join(['a','b','c']), File will raise an exception "`join': recursive array (ArgumentError)".
=end
runpaint (Run Paint Run Run)
07:25 AM Revision 4b4ac8ac (git): merge revision(s) 23096:
* eval.c (rb_eval): checks for interrupt, stack and finalizers too.
[ruby-dev:38208], [Bug #1329]
* eval.c (eval): replaces the message if frozen.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23972 ...
shyouhei (Shyouhei Urabe)
01:03 AM Revision 8c7f7c29 (git): * enum.c (enum_to_a): should propagate taint to the return value.
[ruby-core:24152]
* enum.c (enum_sort_by): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
12:31 AM Revision 06b9094f (git): * proc.c (make_curry_proc): should propagate lambda-ness.
[ruby-core:24127]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:23 AM Revision 42569684 (git): * proc.c (proc_hash): use long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:15 AM Revision ed868485 (git): * test/ruby/test_module.rb (TestModule#test_undef): adjust to
message change.
* test/ruby/test_object.rb (TestObject#test_redefine_method_which_may_case_serious_problem): ditto.
* test/ruby/test_object.rb (TestObject#test_remove_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2...
matz (Yukihiro Matsumoto)
12:09 AM Revision 7c3fff4f (git): * enum.c (enum_join): deals with self recursive objects to get rid
of infinite recursion. [ruby-core:24150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
12:04 AM Revision def66cec (git): * enum.c (enum_join): deals with self recursive objects to get rid
of infinite recursion. [ruby-core:24150]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

07/05/2009

11:41 PM Bug #1731: Enumerable#join with Recursive Structure: "invalid inspect_tbl list for :to_a"
=begin
Drat. I filed this against the wrong version; it should be against trunk. :-(
=end
runpaint (Run Paint Run Run)
11:36 PM Bug #1731 (Closed): Enumerable#join with Recursive Structure: "invalid inspect_tbl list for :to_a"
=begin
class Enum
include Enumerable

def initialize
@elements = [self]
end
def each
@elements.each {|e| yield e}
end
end

Enum.new.join

This code ...
runpaint (Run Paint Run Run)
11:15 PM Revision e86d1ce7 (git): * enum.c (enum_join): added rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:35 PM Bug #1720: [NaN] == [NaN] が true になる
そんなに速度的にきついんですかね。
であれば、あまり妙なことはしないほうがいいと思うので、
既知の問題として当面は(4)とするとか。
tadf (tadayoshi funaba)
01:31 AM Bug #1720: [NaN] == [NaN] が true になる
まつもと ゆきひろです
In message "Re: [ruby-dev:38734] Re: [Bug #1720] [NaN] == [NaN] が true になる"
on Sun, 5 Jul 2009 01:14:16 +0900, Yukihiro Matsumoto <matz@ruby-lang.org> writes:
> > `NaN = 0.0/0`
> ...
考えられる対処は
(1) `NaN == N...
matz (Yukihiro Matsumoto)
01:14 AM Bug #1720: [NaN] == [NaN] が true になる
まつもと ゆきひろです
In message "Re: [ruby-dev:38725] [Bug #1720] [NaN] == [NaN] が true になる"
on Fri, 3 Jul 2009 21:43:24 +0900, tadayoshi funaba <redmine@ruby-lang.org> writes:
> `NaN = 0.0/0`
> ...
確かに。`rb_equal()`が両辺が同じオブジェクトのときにメ...
matz (Yukihiro Matsumoto)
06:19 PM Bug #1729: Returning ignores ensure section when inside lambda
=begin
I forgot to add that the same code works when it's in a regular function:

def bar
begin
return
ensure
puts "hi mom"
end
end

bar

It just fails when it's in a lambda.
=end
bugmenot (bugmenot bugmenot)
05:54 PM Bug #1729 (Closed): Returning ignores ensure section when inside lambda
=begin
The following code does not run the code inside the ensure section when run in Ruby 1.9.1. When run under Ruby 1.8.7, the ensure section is correctly run. Is there any reason for this change in behavior?

foo = lambda do
...
bugmenot (bugmenot bugmenot)
03:48 PM Revision 2db86440 (git): * rational.c: edited rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
03:44 PM Bug #1728 (Rejected): gem installed binaries don't honor program-suffix
=begin
What happens:
* Compile and Install ruby using ./configure --program-suffix=-foobar
* Install a gem that installs a binary: gem install ZenTest
* Notice that the binaries created do not have the program-suffix: ls autote...
docwhat (Christian Höltje)
03:11 PM Revision 95b71ae3 (git): * 2009-07-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:11 PM Revision b5279bb5 (git): * time.c (find_time_t): fix Time.local(2009,2,31) failure on 64bit
time_t environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
akr (Akira Tanaka)
01:46 PM Revision b50cc1fe (git): * complex.c (nucomp_s_polar): now arg is optional.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
11:44 AM Revision 5a763bb5 (git): * complex.c (float_arg): returns PI for -0.0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Tadayoshi Funaba
08:17 AM Bug #1725 (Closed): [PATCH] Warnings with Minor Grammatical Errors
=begin
Applied in changeset r23958.
=end
nobu (Nobuyoshi Nakada)
07:56 AM Bug #1725 (Closed): [PATCH] Warnings with Minor Grammatical Errors
=begin
The attached patch fixes some terribly minor grammatical errors in warnings issued by vm_method.c.
=end
runpaint (Run Paint Run Run)
07:12 AM Feature #1724 (Rejected): Support for "&*uml;"-HTML-codes in ERB::Util.html_escape (solution included)
=begin
Certain language specific chars like the german "Umlaute" are represented in HTML with "&auml;" (ä), "&uuml;" (ü) etc.
Since ERB::Util.html_escape escapes the & to become "&amp;" one cannot use these HTML codes.

To work a...
vosch (Volkmar Schulz)
05:04 AM Revision b35d1e71 (git): * thread.c (rb_threadptr_exec_event_hooks): new function to
execute event hooks, with preserving errinfo. [ruby-core:24118]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
04:00 AM Bug #1306 (Open): exception when exiting from IRB if test/unit is loaded
=begin

=end
shyouhei (Shyouhei Urabe)
03:58 AM Bug #1306 (Closed): exception when exiting from IRB if test/unit is loaded
=begin
Applied in changeset r23954.
=end
shyouhei (Shyouhei Urabe)

07/04/2009

11:14 PM Revision fd4d1dde (git): * vm_method.c (rb_add_method, remove_method, rb_undef): fixed
minor grammatical errors in warnings. a patch from Run Paint
Run Run at [ruby-core:24141].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:12 PM Revision ba0ac946 (git): * vm_method.c (Init_eval_method): registers notimplement_body as a
mark-object.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:08 PM Revision 918fefb7 (git): * vm_insnhelper.c (vm_yield_setup_block_args): restores the first
arg where is overwritten at funcall. [ruby-core:24139]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
06:55 PM Revision 473f3eed (git): merge revision(s) 23032:
* lib/test/unit.rb: use Kernel.exit to get rid of using
IRB::ExtendCommandBundle#exit. a patch from Dmitry Vazhov by
[ruby-core:22986].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@23954 b2dd03c8...
shyouhei (Shyouhei Urabe)
12:56 PM Bug #1708: require 'complex' Causes Unexpected Behaviour
=begin
ruby is a great believer in unix/c.

Math.acosh(-1) # EDOM
(-8) ** 0.5 #=> NaN
1 / 2 #=> 0

and

require 'cmath'
CMath.acosh(-1) #=> (0.0+3.141592653589793i)
Complex(-8) ** 0.5 #=> (1.7318549141438708e-16+2.82...
tadf (tadayoshi funaba)
05:06 AM Bug #1708: require 'complex' Causes Unexpected Behaviour
=begin
> According to the fail-early principle, unexpected situation should be
> told (by raising an error) as early as possible.

I'd always considered that to apply to calculations that would ultimately fail, the logic being tha...
runpaint (Run Paint Run Run)
02:48 AM Bug #1708: require 'complex' Causes Unexpected Behaviour
=begin
Hi,

In message "Re: [ruby-core:24129] [Bug #1708] require 'complex' Causes Unexpected Behaviour"
on Sat, 4 Jul 2009 02:10:15 +0900, Run Paint Run Run <redmine@ruby-lang.org> writes:

|When I heard that Complex had been ...
matz (Yukihiro Matsumoto)
02:10 AM Bug #1708: require 'complex' Causes Unexpected Behaviour
=begin
Thank you for the explanation, matz. :-)

When I heard that Complex had been moved to core I assumed that _all_ Complex functionality had been translated, include the Math extensions. I imagine that this was a common reaction...
runpaint (Run Paint Run Run)
01:17 AM Bug #1708: require 'complex' Causes Unexpected Behaviour
=begin
Hi,

In message "Re: [ruby-core:24126] [Bug #1708] require 'complex' Causes Unexpected Behaviour"
on Fri, 3 Jul 2009 20:01:54 +0900, tadayoshi funaba <redmine@ruby-lang.org> writes:

|not a bug

Let me clarify. As Com...
matz (Yukihiro Matsumoto)
12:21 PM Bug #1353: io does not convert str when ext == intern
=begin
こんにちは sheepman です。

この件は結局どうなったのでしょうか?

>成瀬です。
>
>sheepman wrote:
>>> 内部エンコーディングの設定は、書き込み時のエンコーディング変換には影響しません。
>>> またdefault_externalも、書き込み時のエンコーディング変換には影響しません。
>>
>> 影響しているようです。
>
>うーむむ、確かに。
>ちょっと[ruby...
sheepman (Takashi Tamura)
08:22 AM Bug #1721: NaN.divmod(NaN) が例外にならない
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:38727] Re: [Bug #1721] NaN.divmod(NaN) が例外にならない"
on Sat, 4 Jul 2009 01:42:18 +0900, Yukihiro Matsumoto <matz@ruby-lang.org> writes:

| 1.8 1.9
|加 NaN ...
matz (Yukihiro Matsumoto)
01:42 AM Bug #1721: NaN.divmod(NaN) が例外にならない
=begin
まつもと ゆきひろです

In message "Re: [ruby-dev:38726] [Bug #1721] NaN.divmod(NaN) が例外にならない"
on Fri, 3 Jul 2009 22:01:47 +0900, tadayoshi funaba <redmine@ruby-lang.org> writes:

|1.8 では NaN.divmod(NaN) などは例外になっていました。

なんか、どのバー...
matz (Yukihiro Matsumoto)
12:46 AM Revision a82c5ee4 (git): * numeric.c (dbl2ival): should raise FloatDomainError on Infinity
and NaN as 1.8 does. [ruby-dev:38726]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
12:22 AM Bug #1722 (Closed): Curried Lambda Returns False for #lambda? Despite Having No "Tricks"
=begin
A curried lambda returns false for #lambda? despite having identical "rigid" argument handling.

>> l = lambda {|x|}
=> #<Proc:0x9914b60@(irb):33 (lambda)>
>> l.call(1,2)
ArgumentError: wrong number of a...
runpaint (Run Paint Run Run)
 

Also available in: Atom