Activity
From 08/01/2009 to 08/07/2009
08/07/2009
-
10:17 PM Bug #1903: incorrect line returned (0) in rb_vm_get_sourceline()
- =begin
Never mind; I'm trying to fix another bug in the core and I'm calling rb_vm_get_sourceline() before the PC is incremented. Which cannot happen. Sorry for the noise.
=end
-
02:03 AM Bug #1903: incorrect line returned (0) in rb_vm_get_sourceline()
- =begin
This is actually broader than I described. It occurs whenever:
iseq->insn_info_size > 0
and
iseq->insn_info_table[0].position = cfp->pc - cfp->iseq->iseq_encoded
=end
-
01:32 AM Bug #1903 (Rejected): incorrect line returned (0) in rb_vm_get_sourceline()
- =begin
If rb_vm_get_sourceline() is called when cfp->pc is equal to cfp->iseq->iseq_encoded (IOW, on the first instruction), then zero will be returned as the line number.
I think that if:
iseq->insn_info_size > 0, and,
is... -
09:18 PM Revision ac2557e0 (git): * 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/trunk@24443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:21 PM Feature #1900: Suggestion: Encoding#ascii_compatible?
- =begin
> It cannot be distinguished whether the given encoding is invalid or ASCII-compatible.
> Encoding::Converter.asciicompat_encoding("UTF-8") returns nil.
> Encoding::Converter.asciicompat_encoding("UTF-0") also returns nil.
... -
01:40 AM Feature #1900: Suggestion: Encoding#ascii_compatible?
- =begin
This seems reasonable.
How do you think matz?
If ok, I'll add this.
=end
-
08:19 PM Feature #1906 (Closed): Kernel#backtrace: Objectifying Kernel#caller
- =begin
Inspired by nobu's recent refactoring of Kernel#rand`, several conversations with Ruby implementors about Kernel#caller, and Rubinius' Backtrace class, I've put together a _rough_ demo of how we could "objectify" Kernel#caller. ... -
06:31 PM Feature #1905 (Rejected): How about IPAddr#<=> to take care of mask_addr?
- =begin
いまいです。
#1877 はありがとうございました。
IPAddr のインスタンスがハッシュのキーに出来るようになったので、簡単な
Access Control List を書いてみたのですが、
>> RUBY_DESCRIPTION
=> "ruby 1.9.2dev (2009-08-07 trunk 24440) [i686-linux]"
>> acl = {
?> IPAddr.new("19... -
02:40 PM Revision a11988cd (git): * eval.c (rb_thread_schedule): need select for WAIT_SELECT, even if
- already timeout. [ruby-dev:38971]
(WAIT_DONE): defined for mark threads which can be runnable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
11:19 AM Revision 6df41fc3 (git): * ext/digest/sha2/sha2.h: include inttypes.h for uint32_h, etc.
- * ext/digest/sha2/extconf.rb: check inttypes.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:50 AM Bug #1904: cmp required?
- =begin
補足です。
baseruby用にruby_1_8をビルドしたときにautoconf,gcc,bison,makeなどは入れていて、trunkをビルドしようとすると追加でdiffutilsに含まれるcmpが必要だったという話です。
=end
-
01:34 AM Bug #1904 (Rejected): cmp required?
- =begin
ほぼ最小限のcygwin環境でtrunkのビルドを試そうとしてみたところ、cmpかgperfもなくて止まってしまったのですが、cmpが必須になったのでしょうか?
ccache gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -
Wwrite-strings -I. -I.ext/include/i386-cygwin -I/home/kazu/w...
08/06/2009
-
11:56 PM Feature #1900: Suggestion: Encoding#ascii_compatible?
- =begin
I think Encoding::Converter.asciicompat_encoding method is incomplete.
It cannot be distinguished whether the given encoding is invalid or ASCII-compatible.
Encoding::Converter.asciicompat_encoding("UTF-8") returns nil.
Enc... -
11:29 PM Feature #1900: Suggestion: Encoding#ascii_compatible?
- =begin
There's Encoding::Converter.asciicompat_encoding('UTF-8'). It returns nil if it is; a corresponding ASCII-compatible encoding otherwise.
=end
-
11:23 PM Feature #1900 (Closed): Suggestion: Encoding#ascii_compatible?
- =begin
An important property of an Encoding is whether it is ASCII-compatible. However as far as I can see, you can only test for this indirectly, e.g.
Encoding.compatible?("a".force_encoding("ISO-8859-1"), "a".force_encoding("US... -
11:24 PM Bug #1901 (Closed): Segfault for Enumerable#count When Aliased to #size
- =begin
$ cat /tmp/enum-size.rb
class E
include Enumerable
alias :size :count
def each
yield 1
end
end
p E.new.count
$ ruby -v /tmp/enum-size.rb
ruby 1.9.2dev (2009-08-05 trunk... -
10:20 PM Bug #1899 (Closed): Re: [ruby-cvs:31633] Ruby:r24415 (trunk): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
- =begin
こんにちは、なかむら(う)です。
In message "[ruby-dev:39033] Re: [bug:trunk] Re: [ruby-cvs:31633] Ruby:r24415 (trunk): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an"
on Aug.06,2009 21:59:40, <knu@iDaemons.org> wro... -
09:29 PM Bug #1894 (Open): Re: [ruby-cvs:31633] Ruby:r24415 (trunk): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
- =begin
=end
-
09:28 PM Bug #1894: Re: [ruby-cvs:31633] Ruby:r24415 (trunk): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
- =begin
こんにちは、なかむら(う)です。
In message "[ruby-dev:39030] Re: [bug:trunk] Re: [ruby-cvs:31633] Ruby:r24415 (trunk): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an"
on Aug.06,2009 19:51:37, <knu@iDaemons.org> wrote:... -
07:57 PM Bug #1894 (Closed): Re: [ruby-cvs:31633] Ruby:r24415 (trunk): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
- =begin
Applied in changeset r24426.
=end
-
02:08 PM Bug #1894 (Closed): Re: [ruby-cvs:31633] Ruby:r24415 (trunk): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
- =begin
こんにちは、なかむら(う)です。
下記のcommitの結果、VCではビルドができません。
(1) BYTE_ORDERマクロ等の定義が必要なら、extconf.rbで有無を確
認して、なければ定義するかビルド対象から除外してください。
(2) have_headerマクロでヘッダの存在をチェックしているなら、
ない時は#includeしないでください。
In message "[rub... -
06:25 PM Revision 5414f008 (git): * eval_error.c (error_print): removed an extra argument.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:22 PM Revision b07df382 (git): * eval.c (rb_exc_raise, rb_exc_fatal): nil is used to reraise.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 05:05 PM Revision 01efe808 (git): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
- off-by-one bug in SHA-256 hashing. Reduce differences from
the original while at it. [Bug #1799]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 05:00 PM Revision 7b379bb0 (git): * ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
- checked here. [ruby-dev:39032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:56 PM Revision 4a57c8a8 (git): * ext/digest/sha2/lib/sha2.eb: should require sha2.so.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:56 PM Revision b7aa5a41 (git): Fix a typo.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:51 PM Revision 04cad34c (git): * ext/digest/sha2/sha2.c: The ULL suffix is not supported by
- pre-C99 compilers, so resurrect the ULL() macro to regain
portability. [ruby-dev:39032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:36 PM Revision 43b2e3be (git): * ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
- checked here. [ruby-dev:39032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:07 PM Revision eb6c13bd (git): * 2009-08-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:07 PM Revision 833b3545 (git): * ext/tk/extconf.rb (search_tclConfig): fix logic bug.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 04:06 PM Revision f3892d9f (git): * 2009-08-07
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:06 PM Revision 2a77ed67 (git): * ext/tk/extconf.rb (search_tclConfig): fix logic bug.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:47 PM Bug #1896 (Closed): Segfault for Method#== with :send
- =begin
Applied in changeset r24421.
=end
-
03:29 PM Bug #1896 (Closed): Segfault for Method#== with :send
- =begin
I get a segfault with the following on 1.9. Same with :__send__. Works on 1.8.
$ cat /tmp/segfault.rb
String.instance_method(:send) == String.instance_method(:send)
$ ruby /tmp/segfault.rb
Aborted
/tmp/... -
03:45 PM Bug #1898 (Closed): Method#== for Methods with the Same Body
- =begin
The documentation for Method#== states "Two method objects are equal if that[sic] are bound to the same object and contain the same body." However, this doesn't seem to be true. Defining a method with either the same literal body... -
01:07 PM Bug #1892 (Closed): mkmf.rb:1008:in check_sizeof: undefined local variable or method `opts'
- =begin
Applied in changeset r24418.
=end
-
07:02 AM Bug #1892 (Closed): mkmf.rb:1008:in check_sizeof: undefined local variable or method `opts'
- =begin
An issue introduced by r23369
It references "opts", but that doesn't exist.
=end
-
01:01 PM Bug #1893 (Closed): Recursive Enumerable#join is surprising
- =begin
>> Bar = Struct.new(:a, :b)
=> Bar
>> bars = [Bar.new('1', '2'), Bar.new('3', '4')]
=> [#<struct Bar a="1", b="2">, #<struct Bar a="3", b="4">]
>> bars * '--'
=> "1--2--3--4"
Surprising? It looks like joining Array... - 12:18 PM Revision e97f1270 (git): * ext/digest/sha2/lib/sha2.eb: should require sha2.so.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 12:12 PM Revision 2bfa64d0 (git): * ext/digest/sha2/sha2.c (*_Final): typos.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 10:49 AM Revision 7fdaba27 (git): * ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
- necessary. [ruby-dev:39029]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:36 AM Revision a8090779 (git): * encoding.c (rb_enc_associate_index): cannot set encoding on
- special constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:26 AM Revision a2393c3e (git): * encoding.c (valid_encoding_name_p): rejects too long encoding
- names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:25 AM Revision 30995c65 (git): * encoding.c (encoding_data_type): typed data.
- * encoding.c (enc_capable, rb_enc_get_index): Symbol is encoding
capable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:08 AM Revision 87c1a07d (git): * encoding.c (rb_enc_get_index): fixed indent.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:44 AM Revision efb90973 (git): * vm_method.c (rb_method_entry_eq): deals with optimized method
- properly. [ruby-core:24789]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:30 AM Revision f86f669c (git): * test/mkmf/base.rb (TestMkmf): was turned into a class, because
- MiniUnit doesn't complain even if a testcase has no tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:14 AM Revision a032b1bd (git): * test/mkmf/base.rb: split from test_sizeof.rb.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:00 AM Revision c6ada1e7 (git): * lib/mkmf.rb (check_sizeof): added optional compiler option
- argument. [ruby-core:24785]
* lib/mkmf.rb (create_makefile): suppressed shadowing outer local
variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:05 AM Revision d04b691b (git): * lib/test/unit/testcase.rb (Test::Unit): removes silly TestCase
- class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:47 AM Bug #1799 (Closed): ext/digest/sha2.c should be updated to fix an off-by-one bug
- =begin
Applied in changeset r24415.
=end
-
12:17 AM Feature #1877 (Closed): IPAddr#hash should consider a mask_addr
- =begin
Applied in changeset r24411.
=end
-
12:07 AM Revision 7d3391c1 (git): * eval.c (rb_thread_schedule): refine previous change.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08/05/2009
-
11:17 PM Bug #1787: URI ライブラリの正規表現パターン
- =begin
まつもと ゆきひろです
In message "Re: [ruby-dev:39017] Re: [Bug #1787] URI ライブラリの正規表現パターン"
on Wed, 5 Aug 2009 05:14:13 +0900, "NARUSE, Yui" <naruse@airemix.jp> writes:
|> \d が一般化された意義は理解しますが、[0-9] と同等でなくなった事は、いい
|> 事ばかりでもないように... -
05:14 AM Bug #1787: URI ライブラリの正規表現パターン
- =begin
成瀬です。
Tadayoshi Funaba wrote:
>>> 話が少しずれますが、標準ライブラリでは、少くとも scanf、time、date など
>>> で同様の問題がでるように思います。一般に、\d が [0-9] ではなくなった事
>>> 態にどう対処するのが正しいでしょうか。
>> 個別具体的に、そのライブラリに置いて \d と [0-9] のどちらが「正しい」かを
>>
判断する事になります。
>> URIは許さな... - 04:40 PM Revision d427b8a8 (git): * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
- off-by-one bug in SHA-256 hashing. Reduce differences from
the original while at it. [Bug #1799]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 04:31 PM Revision ac9f7794 (git): * 2009-08-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:31 PM Revision eb2ce3df (git): * eval.c (rb_thread_schedule): fix condition for making thread
- runnable. [ruby-core:23515]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:20 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
I think adding another method of this form to MatchData will be confusing. How about overloading MatchData#values_at ? It currently takes one or more integer indices and returns an Array of corresponding values. It could be modif... -
03:59 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
> one approach is to return an Array when there are multiple matches; a String otherwise
There are few APIs which returns different types except true/false or obj/nil.
This is because such API disturbs duck typing.
So... -
03:17 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
> Oh sorry, i misunderstood. I think you wanted to access "b" with /(?<a>\w)+/.match("abc").
That's quite alright. :-)
> Anyway however, changing return value from alwasy String to String or Array is difficult because o... -
03:33 AM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
Oh sorry, i misunderstood. I think you wanted to access "b" with /(?<a>\w)+/.match("abc").
Your proposal may be able to implement because those data is near by us. (you taught it by inspect data, sorry!)
Anyway however,... -
02:33 AM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
Yui,
Thank you for your help. I didn't realise it would be difficult. I'd assumed that as:
/(?<a>a)(?<a>b)(?<a>c)/.named_captures
=> {"a"=>[1, 2, 3]}
And:
'abc'.match(/(?<a>a)(?<a>b)(?<a>c)/)[1..3]... -
02:09 AM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
Yes, of cource, your desiable API needs more implementation after the option enabled.
I said by the comment before, Ruby 1.9's regexp is based on Oniguruma. So if a function is already implemented in Oniguruma, the function... -
03:34 PM Feature #1889 (Closed): Teach Onigurma Unicode 5.0 Character Properties
- =begin
Onigurma understands named category properties such that
>> 0x012c.chr('utf-8')
=> "Ĭ"
>> 0x012c.chr('utf-8') =~ /\p{Lu}/
=> 0
By my reckoning there are about 3,000 characters in the current UnicodeData.t... - 03:13 PM Revision c7b5cecb (git): * 2009-08-06
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:13 PM Revision 20a68473 (git): * lib/ipaddr.rb (IPAddr#hash): Take account of netmask; submitted
- by Nobuhiro IMAI in [ruby-dev:39011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:53 PM Bug #1852: Enumerable's #hash Raises ArgumentError When Recursive Values are Present
- =begin
Hi,
2009/8/3 Tanaka Akira <akr@fsij.org>:
> In article <67e307490908012245x3bf3be81oc7f060c2569ad4ab@mail.gmail.com>,
> Run Paint Run Run <runrun@runpaint.org> writes:
>
>>> * several real applications are found
>>
>> T... -
05:33 AM Bug #1852: Enumerable's #hash Raises ArgumentError When Recursive Values are Present
- =begin
I agree wholeheartedly with Run Paint. As I pointed in my patch for recursive equality (http://redmine.ruby-lang.org/issues/show/1448 ), the ideal solution is that recursive structures have their hash collide to the same value. T... -
12:40 PM Bug #1749 (Closed): Change in How $~ is Restored After String#sub/String#gsub with a Block
- =begin
=end
-
10:24 AM Bug #1887 (Closed): nil exception can be thrown
- =begin
This code throws nil exception object by assigning nil to $!:
module Any
def self.===(other)
puts "#{self.inspect} === #{other.inspect}"
true
end
end
begin
begin
raise Exception.new
r... -
10:19 AM Revision 8bc6c715 (git): * ruby.c (load_file_internal): assumes -x flag if no "ruby" is in
- the shebang line. [ruby-dev:39015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
10:18 AM Revision cb9038cb (git): * io.c (rb_stdio_set_default_encoding): prototyped.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:12 AM Revision c6abdf3e (git): * ruby.c (rb_stdio_set_default_encoding): declared.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:46 AM Revision a2d42dab (git): * debug.c (ruby_dummy_gdb_enums): made public. [ruby-dev:39001]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:30 AM Revision 66c92417 (git): merge revision(s) 24223:
- * io.c (rb_io_flush): fsync() after buffer is flushed on win32.
backported from trunk. [ruby-core:20043]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:28 AM Bug #1858: Random#int's Handling of Invalid Arguments Contradicts its Documentation
- =begin
The contradiction should be addressed, but it's important that Random.new.int(1) returns 0 for completeness' sake. For example, if someone has a good reason to use a specific random generator to pick an element in an array:
... -
05:40 AM Bug #1165: Range.eql? and Range.== bug with subclasses
- =begin
Thanks Ujihisa for these links.
The fact that the doc doesn't mention the behavior for subclasses (which is true as well for String, Array, Hash, Time) doesn't change what the best behavior should be.
Could this ticket ... -
03:19 AM Bug #1165: Range.eql? and Range.== bug with subclasses
- =begin
Current documentations don't mention about a subclass of Range.
http://www.ruby-doc.org/core/classes/Range.html#M000690
http://doc.okkez.net/191/view/method/Range/i/=3d=3d
Actually the Japanese one was fixed not to menti... -
05:30 AM Bug #1885 (Closed): Proper comparison of recursive Struct & Range
- =begin
The following code freezes the latest ruby 1.9:
MyClass = Struct.new(:foo)
x = MyClass.new; x[:foo] = x
y = MyClass.new; y[:foo] = y
x == y # Loops forever (can not be interrupted)
Solution: rb_struct_equ... -
05:01 AM Revision da197976 (git): * range.c (range_eql, range_eq): fixed equality to work for
- subclasses of Range. a patch from Marc-Andre Lafortune.
[ruby-core:22190]
* test/ruby/test_range.rb: add assertions for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:43 AM Bug #1883: REXML hash sometimes computes a value that is too large
- =begin
This is potential problem for MRI as well since Array#hash blows up if any item's hash is not a Fixnum:
class C
def hash
100000000000000000000
end
end
[C.new].hash # => in `hash': bignum too big to conv... -
03:42 AM Bug #1883: REXML hash sometimes computes a value that is too large
- =begin
Hi,
At Wed, 5 Aug 2009 03:24:49 +0900,
Ryan Riley wrote in [ruby-core:24754]:
> The hash method sometimes computes a value that is too
> large. This is a rare occurrence in MRI, but this is causing
> problems for IronRuby.... -
03:24 AM Bug #1883 (Closed): REXML hash sometimes computes a value that is too large
- =begin
The hash method sometimes computes a value that is too large. This is a rare occurrence in MRI, but this is causing problems for IronRuby. The following patch is suggested for computing smaller hashes:
edit: c:/ruby/libs/ru... -
04:01 AM Revision c82826ce (git): * bootstraptest/test_exception.rb: test for [ruby-core:24767].
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:54 AM Revision 699d9a15 (git): * eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
- [ruby-core:24767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:54 AM Revision 6b0ac4ae (git): * eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
- [ruby-core:24767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:46 AM Revision 4f5267ce (git): * eval.c (rb_eval): does not restore old errinfo when fatal error.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:39 AM Revision 0a2b36a9 (git): * eval.c (rb_longjmp): reset raised flag before fatal error.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:37 AM Bug #1878 (Closed): testrb can not execute tests in sub directory
- =begin
Applied in changeset r24397.
=end
-
03:36 AM Revision c41d275f (git): * eval.c (rb_eval): not discard fatal error.
- * eval.c (rb_longjmp): reset raised flag before fatal error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:38 AM Feature #1882: MatchData#==
- =begin
Your speed never ceases to amaze, nobu...
> And #hash and #eql? too?
I didn't want to be greedy. ;-)
That looks great, thank you. :-)
=end
-
02:32 AM Feature #1882: MatchData#==
- =begin
Hi,
At Wed, 5 Aug 2009 01:29:40 +0900,
Run Paint Run Run wrote in [ruby-core:24748]:
> Terribly unimportant, even by my standards, but could
> MatchData have a sensible #== defined? Currently two
> logically identical Matc... -
01:29 AM Feature #1882 (Closed): MatchData#==
- =begin
Terribly unimportant, even by my standards, but could MatchData have a sensible #== defined? Currently two logically identical MatchData objects return false for #==.
>> a = 'haystack'.match(/hay/)
=> #<MatchData "hay"... -
01:40 AM Revision d857a1b0 (git): Fix test for previous commit.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:38 AM Revision 88c0b8fe (git): Fix error message of /.../n with embeded non ASCII-8BIT string.
- * re.c (rb_reg_preprocess_dregexp): add options to arguments.
* re.c (rb_reg_new_ary): follow above.
* re.c (rb_reg_preprocess_dregexp): change error message when
/.../n has a non escaped non ASCII character in non ASCII-8BIT
scrip... -
01:14 AM Bug #1881 (Closed): [PATCH] Build Documentation for Kernel#gem and Gem
- =begin
The documentation for Kernel#gem (and by extension Gem) isn't being built. `rdoc` doesn't choke on it, and at the least we need documentation for #gem, so the attached trivial patch adds 'rubygems.rb' to lib/.document.
=end
-
12:51 AM Bug #1755: IO#reopen Doesn't Fully Associate with Given Stream on 1.9; Ignores pos on 1.8
- =begin
Hi,
In message "Re: [ruby-core:24686] [Bug #1755] IO#reopen Doesn't Fully Associate with Given Stream on 1.9; Ignores pos on 1.8"
on Sun, 2 Aug 2009 16:12:19 +0900, Run Paint Run Run <redmine@ruby-lang.org> writes:
|Th... -
12:43 AM Feature #1880 (Rejected): Hash#flatten Doesn't Operate Recursively for Hash Values
- =begin
Hash#flatten claims to flatten recursively if given an argument specifying the depth. This works as expected for Array values, but has no bearing on Hash values.
>> h = {orange: :orange, coconut: {inside: :white, outside...
08/04/2009
-
11:24 PM Feature #1857: install *.h and *.inc
- =begin
> Impossible. AST is no longer available at runtime, since now
> it's a transient structure which will be discarded after the
> translation to byte code.
It's not impossible. An extension library can call rb_compile_cst... -
10:48 PM Bug #1878 (Closed): testrb can not execute tests in sub directory
- =begin
1.9.2-preview1 の testrb コマンドがサブディレクトリのテストを実行できません。
$ ruby192 -v
ruby 1.9.2dev (2009-07-18 trunk 24186) [i686-linux]
$ mkdir test
$ echo 'require "test/unit"; class A<Test::Unit::TestCase; def test_a; assert_match(/a/, ... -
10:26 PM Feature #1877 (Closed): IPAddr#hash should consider a mask_addr
- =begin
いまいです。
r24388 ですが、ネットマスクが考慮されていないので、アドレスが同じでネッ
トマスクが違うオブジェクトも同じものだとみなされてしまいます。
>> a1 = IPAddr.new("192.168.2.0/24")
=> #<IPAddr: IPv4:192.168.2.0/255.255.255.0>
>> a2 = IPAddr.new("192.168.2.0/25")
=> #<IPAddr: IPv4:192... -
09:19 PM Bug #1787: URI ライブラリの正規表現パターン
- =begin
どう考えても僕の担当すべき問題じゃないのでとりあえず変更
=end
-
08:51 PM Bug #1787: URI ライブラリの正規表現パターン
- =begin
> > 話が少しずれますが、標準ライブラリでは、少くとも scanf、time、date など
> > で同様の問題がでるように思います。一般に、\d が [0-9] ではなくなった事
> > 態にどう対処するのが正しいでしょうか。
>
> 個別具体的に、そのライブラリに置いて \d と [0-9] のどちらが「正しい」かを判断する事になります。
> URIは許さない方がいいでしょうし、timeやdateでは許してもよいかもしれません。
... -
12:58 PM Bug #1787: URI ライブラリの正規表現パターン
- =begin
> > Ruby 1.9 の正規表現で \d の意味が変わっているので、全角数字が URI として通ってしまいます。URI が BINARY のみを対象にしているのであれば、この限りではありません。
>
> 話が少しずれますが、標準ライブラリでは、少くとも scanf、time、date など
> で同様の問題がでるように思います。一般に、\d が [0-9] ではなくなった事
> 態にどう対処するのが正しいでしょうか。
個別具... -
06:40 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
> This request is in other words, enable capture history.
I'm not sure I understand. The example shows that the history is already captured. Both the #inspect output and #to_a shows that the data is already stored inside the... -
12:51 PM Feature #1873: MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
This request is in other words, enable capture history.
A-5. Disabled functions by default syntax
+ capture history
(?@...) and (?@<name>...)
ex. /(?@a)*/.match("aaa") ==> [<0-1>, <1-2>, <2-3>]
see ... -
07:39 AM Feature #1873 (Rejected): MatchData#[]: Omits All But Last Captures Corresponding to the Same Named Group
- =begin
I suspect that MatchData#[:symbol] should return an Array of values when the same named group has been matched multiple times.
>> m = 'food'.match(/(?<f>oo)(?<f>d)/)
=> #<MatchData "ood" f:"oo" f:"d">
>> m[:f]
... -
06:28 PM Revision 93b9f2cc (git): * lib/test/unit.rb (Test::Unit.setup_argv): expands paths before
- requiring. [ruby-dev:39012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:44 PM Revision 528574c2 (git): * lib/pp.rb (guard_inspect_key): untrust internal hash to prevent
- unexpected SecurityError.
* test/ruby/test_object.rb: add a test for [ruby-dev:38982].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:33 PM Revision 5ea7e7f6 (git): * lib/rdoc/parser/c.rb: fixed a small error in the documentation.
- [ruby-core:24744]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:31 PM Revision 07c08235 (git): * 2009-08-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:31 PM Revision 1dc58f7d (git): * lib/rdoc/parsers/parse_c.rb: fixed a small error in the
- documentation. [ruby-core:24744]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 03:03 PM Revision b4f5ab96 (git): * 2009-08-05
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:03 PM Revision a7bc3ef3 (git): Fixed a small documentation bug in lib/rdoc/parsers/parse_c.rb.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:17 PM Feature #1831 (Closed): Suggestion: warn on repeated character in character class
- =begin
Applied in changeset r24387.
=end
- 01:15 PM Revision 3e7ae681 (git): * win32/win32.c (has_redirection): need to execute shell if commandline
- includes newline. cf. [ruby-core:24560]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 01:13 PM Revision f00babd1 (git): * win32/win32.c (has_redirection): need to execute shell if commandline
- includes newline. cf. [ruby-core:24560]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:47 PM Bug #1876 (Closed): r24383 Build Error
- =begin
Applied in changeset r24386.
=end
-
11:54 AM Bug #1876 (Closed): r24383 Build Error
- =begin
r24383の変更で、ビルドできなくなったのでそのパッチです。
=end
-
07:47 AM Bug #1871 (Closed): Hash#compare_by_identity Does Not Persist Over #dup or #clone
- =begin
Applied in changeset r24382.
=end
-
03:53 AM Bug #1871 (Closed): Hash#compare_by_identity Does Not Persist Over #dup or #clone
- =begin
The "ident"ness of a Hash doesn't persist over #dup or #clone which makes those methods destructive when they rehash. Given that normally hash == hash.dup, and that default procs are retained over these two operations, I assume t... - 06:10 AM Revision 61c11677 (git): * lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} so
- that an IPAddr object can be used as a hash key, a set element,
etc.; suggested by Nick Brown <nick@nick-brown.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
04:14 AM Revision 60ab77a1 (git): Warn duplicated characters in character class of regexp. [ruby-core:24593]
- * include/ruby/oniguruma.h (ONIG_SYN_WARN_CC_DUP): defined.
* regparse.h (ScanEnv): add warnings_flag.
* regparse.c (CC_DUP_WARN): defined for warn duplicated characters in
character class of regexp. [ruby-core:24593]
(add_code_range... -
04:07 AM Bug #1282 (Closed): tk extension uses old style c function declarations generating a bunch of warnings
- =begin
Applied in changeset r24377.
=end
-
03:42 AM Revision 38107457 (git): * enc/encdb.c (ENC_SET_BASE): fix typo. patch by ujihisa [ruby-dev:39004]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:27 AM Bug #1868: ERB single line comment does not work
- =begin
This is not a bug. Use <# for erb comments.
=end
-
02:04 AM Revision f66f36d3 (git): merge revision(s) 24190,24192:
- * re.h (RMATCH_REGS): added for compatibility.
* ruby.h (RFLOAT_VALUE, RSTRING_END, RREGEXP_SRC_*, RBIGNUM_*):
backported macros for compatiblity from trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1... -
01:52 AM Bug #1419 (Closed): Tk, segmentation fault
- =begin
やり取りの結果,報告者の環境(コンパイルオプションやライブラリの状態)の不整合が疑われたため,
その不整合箇所を修正した上でのテストを報告者に依頼したが,その後は連絡なし.
よって確認は取れていないが,問題は解消したものとして,やむを得ず close する.
=end
-
12:51 AM Revision 8c658137 (git): More strict for Big5 series.
- * enc/big5.c (EncLen_Big5): back to original Big5 table.
(EncLen_Big5_HKSCS): for Big5-HKSCS.
(trans): add the lead byte table for Big5-HKSCS.
(big5_mbc_enc_len): abstract function for Big5 series.
(big5_mbc_enc_len): for Big5.
... -
12:50 AM Revision b3d7273d (git): Add functions and macros for second encoding definitions.
- * encoding.c (rb_enc_set_base): Add for setting base encoding
with their names. this is internal function.
* template/encdb.h.tmpl: specify ENC_SET_BASE for second
encodings in each encoding files.
* enc/encdb.c (rb_enc_set_base): ...
08/03/2009
-
10:44 PM Revision e00b83ce (git): * hash.c (rb_hash_replace): should copy compare_by_identity status as well.
- [ruby-core:24728]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:45 PM Revision d6b9cc7b (git): * thread.c (recursive_push): need to set UNTRUST. [ruby-dev:38997]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:32 PM Bug #1868 (Rejected): ERB single line comment does not work
- =begin
Hi,
I just ran into this and found that a 1.9 bug for this is open already. But this issue also applies to 1.8.7. So I'm duplicating the description from here: http://redmine.ruby-lang.org/issues/show/1559
In erb you'r... -
08:24 PM Bug #1559: ERB single line comment does not work
- =begin
Hi,
I just ran into this issue on ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] as well. The test_erb.rb test fails.
On ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0], however, it passes.
- Johanne... - 07:02 PM Revision 094dc6cd (git): * 2009-08-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:01 PM Revision e3b2342a (git): * ext/tk/lib/tcltklib.c: fix trouble on old-style C function
- declarations [ruby-core:22871].
* ext/tk/lib/tcltklib.c: (ruby_1_8) fix warning about RUBY_RELEASE_DATE
* ext/tk/lib/tk/multi-tk.rb: kill zombie threads.
* ext/tk/lib/tk/fontchooser.rb: fix typo and support OptionObj.
* ext/tk/lib/tk/can... - 07:01 PM Revision 8fa67f4e (git): * 2009-08-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
07:01 PM Revision 4293a985 (git): * ext/tk/lib/tcltklib.c: fix trouble on old-style C function
- declarations [ruby-core:22871].
* ext/tk/lib/tcltklib.c: (ruby_1_8) fix warning about RUBY_RELEASE_DATE
* ext/tk/lib/tk/multi-tk.rb: kill zombie threads.
* ext/tk/lib/tk/fontchooser.rb: fix typo and support OptionObj.
* ext/tk/lib/tk/can... -
06:27 PM Bug #1867 (Closed): uninitialized constant TCPserver in samples
- =begin
Applied in changeset r24372.
=end
-
06:16 PM Bug #1867 (Closed): uninitialized constant TCPserver in samples
- =begin
Following three samples in the sample directory fail to run.
[sample]$ ruby tsvr.rb
tsvr.rb:6:in `<main>': uninitialized constant TCPserver (NameError)
[sample]$ ruby svr.rb
svr.rb:9:in `<main>': uninitialized con... -
05:17 PM Bug #1862 (Closed): [doc] updating lib/README
- =begin
Applied in changeset r24368.
=end
-
05:07 PM Bug #1862: [doc] updating lib/README
- =begin
Hi,
In message "Re: [ruby-core:24693] [Bug #1862] [doc] updating lib/README"
on Mon, 3 Aug 2009 00:05:18 +0900, Daniel Bovensiepen <redmine@ruby-lang.org> writes:
|lib/README is a little bit out of date. In the attachm... -
12:05 AM Bug #1862 (Closed): [doc] updating lib/README
- =begin
lib/README is a little bit out of date. In the attachment is a patch which updates this file to the current content.
=end
-
05:10 PM Bug #1853: Cannot make constants using upper-case extended characters?
- =begin
> Thank you for the link. (I'm in the process of documenting some of this).
Documentation is sorely needed in this area, so that sounds wonderful.
:-) (Look at http://blog.grayproductions.net/categories/character_encodings
... -
04:24 PM Bug #1859: Random#int Segfaults with Non-Integer Ranges
- =begin
Thanks, nobu. Could you double check the bounds for a Float..Integer Range? #int(3.1..5) seems to be resolved to #int(3...5):
>> prng = Random.new(2)
=> #<Random:0x92fd6c8>
>> 20.times.map { prng.int(3.1..5) }
... -
12:37 AM Bug #1859 (Closed): Random#int Segfaults with Non-Integer Ranges
- =begin
Applied in changeset r24358.
=end
- 04:09 PM Revision 836e0d6b (git): * 2009-08-04
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:09 PM Revision 7031f4de (git): Pulled the date.rb change; it should not have been applied.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@24374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:04 PM Bug #1753: non success open client socket not detected on windows
- =begin
This is the bug of ruby 1.9.x not 1.8.7.
Is there any reason not applying this patch?
=end
-
01:22 PM Revision 6b639283 (git): * eval.c (rb_mod_include): fix document. [ruby-core:24675]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:55 PM Bug #1852: Enumerable's #hash Raises ArgumentError When Recursive Values are Present
- =begin
Hi,
In message "Re: [ruby-core:24697] Re: [Bug #1852] Enumerable's #hash Raises ArgumentError When Recursive Values are Present"
on Mon, 3 Aug 2009 02:07:47 +0900, Tanaka Akira <akr@fsij.org> writes:
|>> * several rea... -
12:24 PM Bug #1852: Enumerable's #hash Raises ArgumentError When Recursive Values are Present
- =begin
>>> * several real applications are found
>>
>> This change broke a lot of specs which was how I noticed it. For
>
> I don't count RubySpec as a real application.
So your argument requires:
a) Enough "real" users runnin... -
12:33 PM Bug #1865 (Closed): uninitialized class variable @@accept_charset in CGI
- =begin
cgi/util を直接 require して CGI.unescape を使うと NameError になります。
% ruby-trunk -v -r cgi/util -e 'CGI.unescape("")'
ruby 1.9.2dev (2009-08-03 trunk 24359) [i686-linux]
/home/kazu/opt/ruby-trunk/lib/ruby/1.9.1/cgi/util.rb:15:in ... -
09:26 AM Revision e2ea286e (git): * sample/svr.rb: obsolete TCPserver renamed. [ruby-core:24712]
- * sample/tsvr.rb: ditto.
* sample/dualstack-httpd.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:15 AM Revision 0f1c1ecb (git): * thread.c (recursive_push): untrust internal hash to prevent
- unexpected SecurityError. a patch from Kazuhiro NISHIYAMA.
Fix: #1864 [ruby-dev:38982]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 08:25 AM Revision 62d0285e (git): * 2009-08-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 08:24 AM Revision 9762d9ad (git): * win32/win32.c (rb_w32_connect): return value was broken when some
- error occurred.
[ruby-core:24234]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:07 AM Revision 0fe4c1de (git): * lib/README: updated. a patch from Daniel Bovensiepen.
- [ruby-core:24693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:30 AM Revision fe038100 (git): * win32/win32.c (rb_w32_connect): return value was broken when some
- error occurred.
[ruby-core:24234]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:20 AM Revision 9997227a (git): * bootstraptest/runner.rb: forgot shebang line.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:56 AM Revision 34401f90 (git): * array.c (permute0): use chars for boolean array.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:48 AM Revision 49816a25 (git): * array.c (rb_ary_{permutation,combination}): disallow reentrance
- with continuation since work-buffers cannot restore.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:35 AM Revision 8b0fef37 (git): * bootstraptest/runner.rb: got rid of using /bin/sh.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
06:23 AM Bug #924 (Assigned): encoding for stdio's
- =begin
とりあえず、r24337にて以下のような変更を入れました。
Set encodings of stdio after setting default internal and external.
* io.c (rb_stdio_set_default_encoding): added.
* ruby.c (process_options): call rb_stdio_set_default_encoding
af... -
06:20 AM Feature #1835 (Rejected): 0x80.chr not equal to "\x80"
- =begin
=end
-
05:59 AM Revision cb5e639d (git): merge revision(s) 23943:
- * lib/complex.rb (Numeric#arg): should return NaN for NaN.
[ruby-core:24116]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
05:15 AM Revision 45cd729f (git): * numeric.c (flo_hash): normalize -0.0 to 0.0. [ruby-core:24577]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
04:05 AM Revision 330be69e (git): * array.c (rb_ary_{permutation,combination,product}): must not use
- ary_discard on strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:01 AM Feature #1844: Immediates Should Not Respond to :dup
- =begin
Hi --
On Sun, 2 Aug 2009, Run Paint Run Run wrote:
> I wrote:
>>
>> I think that the exceptions and their messages can be useful in cases
>> like:
>>
>> (0.0..10.0).each {} # TypeError: can't iterate from float
>>
... -
12:56 AM Feature #1857: install *.h and *.inc
- =begin
Hi,
At Sun, 2 Aug 2009 23:44:44 +0900,
Jason Roelofs wrote in [ruby-core:24691]:
> What about the many other libraries that exist to dig into,
> or work directly with, the Ruby node structure? Like
> Nodewrap, RubyNode, Pa...
08/02/2009
-
11:44 PM Feature #1857: install *.h and *.inc
- =begin
What about the many other libraries that exist to dig into, or work directly with, the Ruby node structure? Like Nodewrap, RubyNode, ParseTree (http://blog.zenspider.com/2009/04/parsetree-eol.html), Rice, etc.
Are they all s... -
01:07 PM Feature #1857: install *.h and *.inc
- =begin
Hi,
2009/8/2 Roger Pack <redmine@ruby-lang.org>:
> Feature #1857: install *.h and *.inc
> http://redmine.ruby-lang.org/issues/show/1857
>
> Author: Roger Pack
> Status: Open, Priority: Normal
>
> This is a request for i... -
03:05 AM Feature #1857 (Closed): install *.h and *.inc
- =begin
This is a request for installation procedure to save away more of the source files, for use later by gems.
See http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/24666
Thanks!
=r
=end
-
09:07 PM Bug #1860 (Closed): 文字列連結でsegfault
- =begin
Applied in changeset r24356.
=end
-
08:32 PM Bug #1860 (Closed): 文字列連結でsegfault
- =begin
下記のスクリプトを読みこませるとsegfaultが発生します。
$ cat bug.rb
path="/opt/"
config = '--config=' \
"#{path}/.config"
==============
$ ruby19 bug.rb
bug.rb: [BUG] Segmentation fault
ruby 1.9.2dev (2009-08-02 trunk 24... -
08:50 PM Feature #1800: rubygems can replace system executable files
- =begin
> Without a system registry, rubygems can at best warn that it will overwrite something, it cannot hold this > notion of "system executable files", which is not clearly defined.
It really should prompt before overwriting a f... -
08:31 PM Bug #1165: Range.eql? and Range.== bug with subclasses
- =begin
Was this meant to be closed? It doesn't appear to have been resolved.
=end
-
04:42 PM Bug #1711: Marshal Failing to Round-Trip Certain Recurisve Data Structures
- =begin
> 1.9 Marshal.load with proc is incompatible with 1.8, as following:
>
> * 1.8 load ignores the value returned from proc, whereas 1.9 load
> replaces the object by the value from proc.
>
>
> * 1.9 load calls proc... -
04:12 PM Bug #1755: IO#reopen Doesn't Fully Associate with Given Stream on 1.9; Ignores pos on 1.8
- =begin
Thanks, nobu. There's some related oddness, however:
$ echo -e "ant\nalien\n" > a
$ echo -e "bear\nbison\n" > b
$ cat reopen.rb
a = File.open('a')
b = File.open('b')
a.gets
b.reopen(a)
p b... - 03:32 PM Revision bd85292d (git): * 2009-08-03
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:32 PM Revision a194550e (git): * random.c (rb_random_int): arguments have to be converted to
- integer. [ruby-core:24679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:10 PM Feature #1844: Immediates Should Not Respond to :dup
- =begin
>> - Exceptions are expensive.
>> - Rescuing a specific exception requires a multi-line statement,
>> while respond_to? allows one to write "bar.foo if
>> bar.respond_to?(:foo)"
>
> But you probably wouldn't do:
>
>... -
02:46 PM Bug #1852: Enumerable's #hash Raises ArgumentError When Recursive Values are Present
- =begin
> * several real applications are found
This change broke a lot of specs which was how I noticed it. For
example, Array#&, Array#-, Array#|, Array#sort, Array.flatten,
Array#uniq, and Array#uniq! all now raise ArgumentErrors... -
02:13 PM Bug #1749: Change in How $~ is Restored After String#sub/String#gsub with a Block
- =begin
> I think 1.9.2 behaviour is no problem.
>
> String#sub matches a regexp just once.
> There is no reason to set $~ at last.
>
> String#gsub matches a regexp repeatedly until it doesn't match.
> It set the last match ... -
12:06 PM Revision 59e5d0f1 (git): * bootstraptest/runner.rb: made executable.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:04 PM Revision 6a26b596 (git): * parse.y (literal_concat0): tail can be nil. [ruby-dev:38980]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
11:09 AM Revision 3770ac98 (git): * array.c (rb_ary_combination, rb_ary_product): prevent from GC.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:46 AM Bug #1855: Random#int with Single-Element Ranges
- =begin
A range of Floats also behaves like a single-element Range, which is surely wrong.
>> prng = Random.new
=> #<Random:0x9bb2160>
>> 4.times.map { prng.int(1.0..10.0) }
=> [1.0, 1.0, 1.0, 1.0]
=end
-
09:32 AM Bug #1859 (Closed): Random#int Segfaults with Non-Integer Ranges
- =begin
$ ruby -e 'Random.new.int(3.1..4)'
-e:1: [BUG] Segmentation fault
ruby 1.9.2dev (2009-08-01 trunk 24343) [i686-linux]
-- control frame ----------
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :int
c:0003 p:002... -
08:40 AM Revision dfd3d1fb (git): * test/ruby/test_rand.rb: add tests for Random#float's rejection
- against Infinity and NaN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:35 AM Bug #1858 (Closed): Random#int's Handling of Invalid Arguments Contradicts its Documentation
- =begin
The documentation for Random#int claims that it will raise an ArgumentError when the argument is 0 or negative. In fact, 0 causes repeated generation of 0, and for negative numbers the sign appears to be ignored.
>> prng =... -
05:20 AM Revision e626e0bd (git): * random.c (rand_int): prevent from GC.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:13 AM Bug #1841: Float internal problem in ruby1.9.2dev (2009-07-18)
- =begin
Maybe. To discuss that we need a new ticket.
=end
08/01/2009
- 09:35 PM Revision 3fcfe38c (git): * 2009-08-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:35 PM Revision 64ca541c (git): * test/ripper/test_filter.rb: properties.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:21 PM Bug #1841: Float internal problem in ruby1.9.2dev (2009-07-18)
- =begin
It is true that Float#to_s and Float#inspect currently have the same behavior. Perhaps they could be split to do different things, before the code freeze for 1.9.2?
=r
=end
- 09:12 PM Revision 7d8b6012 (git): * 2009-08-02
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
09:11 PM Revision 56439832 (git): * node.h (rb_thread_status): ISO C89 do not allow a comma at the end of enum.
- * parse.y (string_type): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
08:17 PM Feature #1832: irb -w
- =begin
So what you're looking for is a command line parameter to turn $VERBOSE on?
That would be nice [and also for rake I wish it had this].
Thanks.
=r
=end
-
06:57 PM Bug #1854 (Closed): Random#float Should Reject Infinity and NaN as Upper Limits
- =begin
Applied in changeset r24347.
=end
-
05:15 PM Bug #1854 (Closed): Random#float Should Reject Infinity and NaN as Upper Limits
- =begin
Random#float happily accepts Infinity and NaN as arguments. It should reject them for three reasons:
* Accepting an argument of Infinity implies that the value returned will be between 0.0 and Infinity, when in fact Infinit... -
05:56 PM Bug #1855 (Closed): Random#int with Single-Element Ranges
- =begin
Random#int accepts a Range argument from which it chooses values. If the range contains only one element, #int returns it on every call. This is unlikely to be what a user intended. I suggest that if the range's #begin value is e... -
05:50 PM Bug #1853: Cannot make constants using upper-case extended characters?
- =begin
Thank you for the link. (I'm in the process of documenting some of this).
We may be at cross-purposes over terminology, but when you say "to change this behaviour would be to make the semantics of the program locale dependent"... -
05:35 PM Bug #1853: Cannot make constants using upper-case extended characters?
- =begin
> If this is intentional, it seems like an arbitrary restriction. Unicode characters are unambiguously
> classified into upper-case, lower-case and neither. If they can be used anywhere within an
> identifier, why not at the st... -
05:00 PM Bug #1853 (Rejected): Cannot make constants using upper-case extended characters?
- =begin
>> SCHÖN = 1 # constant
=> 1
>> ÜBER = 2 # local variable!
=> 2
>> self.class.constants.grep(/SCH|BER/)
=> [:SCHÖN]
>> local_variables.grep(/SCH|BER/)
=> [:ÜBER]
I am not sure from the source code whether ... -
05:25 PM Bug #1852: Enumerable's #hash Raises ArgumentError When Recursive Values are Present
- =begin
> Is it valuable to implement such function?
Yes. Even if it simply returned a constant for the degenerate case.
(I'd rather a collision than an exception). To me, #hash is an
integral part of Ruby objects. Having it raise w... -
03:47 PM Bug #1852 (Closed): Enumerable's #hash Raises ArgumentError When Recursive Values are Present
- =begin
Enumerable's #hash methods now raise ArgumentErrors when the structure contains a recursive reference. This is hopefully a bug. #hash is expected to return a Fixnum, not make judgments about the object. #to_s and #inspect both wo... -
12:41 PM Bug #1836: Can change encoding on frozen String
- =begin
> So your new behaviour would be consistent with that. Whether that's the desired behaviour is not really
> for me to decide.
It was decided in http://redmine.ruby-lang.org/issues/show/1550 that no-ops on frozen objects s... -
10:25 AM Revision 8cdfbfd8 (git): * string.c (tr_trans): change condition of singlebyte optimization.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
10:04 AM Bug #1851 (Rejected): make install problems using mingw on fedora 11
- =begin
Fedora 11 の MinGW を使ってクロスコンパイルしてみたところ、
make installの時に./tool/rbinstall.rbで警告が出ます。
それから、RDocの生成に失敗します。
svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby-trunk
cd ruby-trunk
autoconf
mingw32-configure
make
... -
09:56 AM Bug #1842 (Closed): mspec で SIGABRT
- =begin
fix in r24332
(ML連携がうまく動いていないようなので手動でclose)
=end
-
09:51 AM Revision 51d1c5e7 (git): * random.c (random_float): rejects Infinity and NaN.
- [ruby-core:24651]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
09:35 AM Revision 5a5355e8 (git): * tool/rbinstall.rb (gem): suppressed warnings.
- cf: [ruby-dev:38975]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:02 AM Bug #1839 (Closed): String#tr borked for UTF-8 0080..00FF
- =begin
Applied in changeset r24342.
=end