Project

General

Profile

Activity

From 03/24/2009 to 03/30/2009

03/30/2009

11:20 PM Revision 7fd6fb63 (git): * 2009-03-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
11:20 PM Revision 8e2eedf4 (git): * test/csv/test_interface.rb, test/csv/test_serialization.rb:
Trying more fixes some failing tests on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
James Edward Gray II
03:12 PM Bug #1332 (Closed): Reading file on Windows is 500x slower then with previous Ruby version
=begin
time = [Time.new]
c = ''
'aaaa'.upto('zzzz') {|e| c << e}
3.times { c << c }
time << Time.new
File.open('out.file','w') { |f| f.write(c) }
time << Time.new
c = File.open('out.file','r') { |f| f.read }
time << Time...
ther (Damjan Rems)
12:47 PM Bug #1328: "p eval('0' + '+0.1'*n)" の挙動
=begin
なかだです。

At Mon, 30 Mar 2009 05:50:40 +0900,
Kenta Murata wrote in [ruby-dev:38207]:
> "p eval('0'+'+0.1'*n)" を評価すると、n がある値 N を超えたときに
> スタックが溢れますが、バージョン 1.9.2 の N が バージョン 1.9.1 より
> 小さくなっています。

再現できませんでした。

$ ./ruby -ve...
nobu (Nobuyoshi Nakada)
05:50 AM Bug #1328 (Closed): "p eval('0' + '+0.1'*n)" の挙動
=begin
"p eval('0'+'+0.1'*n)" を評価すると、n がある値 N を超えたときに
スタックが溢れますが、バージョン 1.9.2 の N が バージョン 1.9.1 より
小さくなっています。

$ ~/ruby-1.9.1-r22762/bin/ruby -ve "p eval('0'+'+0.1'*13093)"
ruby 1.9.1p0 (2009-03-04 revision 22762) [i386-darwin...
mrkn (Kenta Murata)
12:17 PM Bug #1329 (Closed): Ruby 1.8.8 で "p eval('0' + '+0.1'*n)" が Segmentation Fault を発生させる
=begin
Applied in changeset r23096.
=end
nobu (Nobuyoshi Nakada)
10:53 AM Bug #1329: Ruby 1.8.8 で "p eval('0' + '+0.1'*n)" が Segmentation Fault を発生させる
=begin
古いリビジョンで試していたことに気付いて、最新のリビジョンでもう一度やってみました。
その結果、以下に示すように、症状は変わっていませんでした。

$ ~/ruby-1.8.8-r23088/bin/ruby -ve "p eval('0'+'+0.1'*4581)"
ruby 1.8.8dev (2009-03-28) [i386-darwin9.6.0]
458.100000000036
$ ~/ruby-1....
mrkn (Kenta Murata)
05:58 AM Bug #1329 (Closed): Ruby 1.8.8 で "p eval('0' + '+0.1'*n)" が Segmentation Fault を発生させる
=begin
"p eval('0' + '+0.1'*n)" を評価すると、
n がある値 N1 を超えたときに TypeError が、
N2 を超えたときに Segmentation Fault が発生します。
N1 と N2 がアーキテクチャに依存するかどうかは調べてません。

$ ~/ruby-1.8.8-r23009/bin/ruby -ve "p eval('0'+'+0.1'*4581)"
ruby 1.8.8dev ...
mrkn (Kenta Murata)
10:04 AM Revision 2a58eebd (git): * .gdbinit (rp): show negative fixnum correctly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:39 AM Bug #1326: Failing unit tests on windows
=begin
Hi James,

> I've tried committing a fix for these. Can you tell me if they run OK
> on Windows now?

Thanks. The change fixed 3 of the 10 tests. I thought it would be
easier to separate out the remaining 7 into their ...
cfis (Charlie Savage)
05:37 AM Bug #1327 (Closed): CSV unit test failures on windows
=begin
Thought it might be easier to split the csv failures into a separate ticket (see #1326). After r23094, the number of failures has been reduced from 10 to 7.

Finished in 1.521000 seconds.

1) Error:
test_append(TestC...
cfis (Charlie Savage)
03:12 AM Revision c11f6366 (git): * vm_eval.c (eval_string_with_cref): replaces the message if
frozen. [ruby-dev:38208]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
03:12 AM Revision a1b9ce96 (git): * 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@23096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/29/2009

04:47 PM Bug #1326 (Rejected): Failing unit tests on windows
=begin
The good news is that I've finally made it to the point where I can Ruby's test suite on windows (minus the hanging imap tests mentioned in #1324).

The not so good news is that there are 100 failures. I haven't run the test...
cfis (Charlie Savage)
04:27 PM Bug #1325 (Closed): fiber tests kill windows
=begin
If run on its own, test_fiber.rb runs fine on windows (VC2008 as compiler). But when run as part of the full test_suite, it eventually uses so much memory to cause windows to stop responding, start disk swapping, and finally to ...
cfis (Charlie Savage)
04:19 PM Bug #1324 (Rejected): Imap Tests hanging
=begin
Ruby built with VC2008. Two tests, test_starttls and test_unexpected_eof hang. Tracing through the debugger, the two threads are in loops that call select and then go to sleep. They never come out of it. Note that changing th...
cfis (Charlie Savage)
04:15 PM Bug #1323 (Closed): Sockets broken on windows
=begin
Ruby built with VC2008. All the socket tests fail.

> ruby socket\test_socket.rb

1) Error:
test_accept_loop(TestSocket):
NoMethodError: undefined method `each' for nil:NilClass
socket/test_socket.rb:202:in `...
cfis (Charlie Savage)
04:00 PM Revision c3faa28b (git): * 2009-03-30
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:00 PM Revision a9b53f63 (git): * test/csv/test_interface.rb: Trying a fix for some failing tests
on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
James Edward Gray II
02:24 PM Bug #1322 (Closed): define_method scope bug
=begin
a = 1
Object.send :define_method, :x do
lambda do
p a
a = 2
p a
end.call
end
x(nil)
p a

output is 1,2,1 instead of 1,2,2

details and possible fix: http://coderrr.wo...
coderrr (coderrr .)
09:25 AM Bug #1266: relative_path broken on windows
=begin
Thanks Nobu - looks great. I didn't know about the File::FNM_SYSCASE constant.
=end
cfis (Charlie Savage)
09:07 AM Bug #1266 (Closed): relative_path broken on windows
=begin
Applied in changeset r23093.
=end
nobu (Nobuyoshi Nakada)

03/28/2009

11:59 PM Revision 896db7d6 (git): * lib/pathname.rb (Pathname#relative_path_from): compares path
components according to system default case-sensitiveness.
[ruby-core:22829]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:38 PM Bug #1266: relative_path broken on windows
=begin
I was hoping we could raise the priority of this issue. This bug prevents Ruby's test suite from being run at all on windows:

:\Development\src\ruby_trunk\test>ruby runner.rb minitest\test_mini_test.rb
c:/Development/ruby...
cfis (Charlie Savage)
05:36 PM Bug #1135: Problem renaming CMath.hypot in Ruby1.9
=begin
I wrote an independence version.
It seems to be defference between them evaluaters.


module CMath
include Math
module_function :hypot
end

Object.instance_eval{remove_const :Math}
Math = CMath

class ...
tadf (tadayoshi funaba)
05:03 PM Bug #1250: String#to_r and String#to_c with float number
=begin
It's not a bug.

The parser accepts float form as numerator.
However, denominator is not.

main@191-20090130> Rational('1.5')
#=> (3/2)
main@191-20090130> Rational('1.5/1')
#=> (3/2)
main@191-20090130> Rational(...
tadf (tadayoshi funaba)
04:40 PM Bug #1320 (Closed): sdbm.c compiler warnings
=begin
A couple of compiler warnings are still left in sdbm extension:

cl -nologo -I. -I../../.ext/include/i386-mswin32_90 -I../.././../include -I../.././../ext/sdbm -nologo -MDd -Zi -RTC1 -W3 -wd4996 -Od -Zm600 -DRUBY_EXTCONF_H=\...
cfis (Charlie Savage)
04:35 PM Bug #1319 (Closed): Fix compiler warnings in file.c
=begin
Recently the BUFCHECK macro caused a bunch of compiler warnings got introduced into file.c (compiling with -W3 with vc2008):

./../file.c(2684) : warning C4018: '>=' : signed/unsigned mismatch
./../file.c(2684) : warning C4...
cfis (Charlie Savage)
02:49 PM Revision c79e8ba0 (git): rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
05:18 AM Bug #1318 (Closed): Ri documentation missing for BasicObject methods instance_eval, method_missing, __send__
=begin
It seems that ri does not find the documentation for three instance methods of BasicObject, namely instance_eval, method_missing, and __send__. All three of these seem to have a documentation in the vm_eval.c source file, but th...
b_jonas (Ambrus Zsbán)
02:10 AM Revision f4cecb53 (git): * common.mk (ruby.imp): all symbols in static library need to be
exported, so that encoding-extensions can be loaded. based on a
patch from Yutaka Kanemoto <kinpoco AT gmail.com> at
[ruby-talk:332282].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/27/2009

11:49 PM Revision 48379c73 (git): * sprintf.c (rb_str_format): checks if named argument given twice.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:18 PM Revision 456f68f2 (git): * sprintf.c (GETNAMEARG): remembers named arg is used, to get rid
of too many arguments warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:31 PM Revision 5f79c781 (git): * ext/dl/{mkcall,mkcallback,mkcbtable}.rb: no needs of mkmf.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
07:01 PM Revision b288a9f8 (git): * 2009-03-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
07:00 PM Revision cc55fb42 (git): * ext/extmk.rb: MINIRUBY is given via make-flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
06:17 PM Revision 72122dd9 (git): * lib/mkmf.rb (link_command, cc_command, cpp_command): should not
override extout defined in extmk.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
11:06 AM Revision 526286ea (git): merge revision(s) 21749:
* lib/mkmf.rb (mkintpath): new function which converts native path
to format acceptable in Makefile.
* lib/mkmf.rb (configuration): convers srcdir, topdir and hdrdir.
a patch by Alexey Borzenkov <snaury AT gma...
shyouhei (Shyouhei Urabe)
11:06 AM Revision 7e5e3cb5 (git): merge revision(s) 21749:
* lib/mkmf.rb (mkintpath): new function which converts native path
to format acceptable in Makefile.
* lib/mkmf.rb (configuration): convers srcdir, topdir and hdrdir.
a patch by Alexey Borzenkov <snaury AT gma...
shyouhei (Shyouhei Urabe)
10:25 AM Revision f46c2605 (git): merge revision(s) 22882,22961,22971:
* gc.c (run_final): calls free function. [ruby-core:22578]
* gc.c (rb_gc_call_finalizer_at_exit): leave Thread objects
unfinalized. [ruby-dev:38168]
* gc.c (run_final): frees zombies only. [ruby-dev:38171]
...
shyouhei (Shyouhei Urabe)
10:21 AM Revision b17c347a (git): merge revision(s) 22882,22961,22971:
* gc.c (run_final): calls free function. [ruby-core:22578]
* gc.c (rb_gc_call_finalizer_at_exit): leave Thread objects
unfinalized. [ruby-dev:38168]
* gc.c (run_final): frees zombies only. [ruby-dev:38171]
...
shyouhei (Shyouhei Urabe)
10:18 AM Bug #1317: Creating a range with strings
=begin
2009/3/27 Michael Selig <redmine@ruby-lang.org>:
> Issue #1317 has been updated by Michael Selig.
>
>
> This is a (possibly confusing) consequence of the behaviour of String#next.
> For most sortable objects, the following i...
phasis68 (Heesob Park)
07:59 AM Bug #1317: Creating a range with strings
=begin

> -----Original Message-----
> From: Michael Selig [mailto:redmine@ruby-lang.org]
> Sent: Thursday, March 26, 2009 3:34 PM
> To: ruby-core@ruby-lang.org
> Subject: [ruby-core:23027] [Bug #1317] Creating a range with strings...
jredville (Jim Deville)
07:36 AM Bug #1317: Creating a range with strings
=begin
This is a (possibly confusing) consequence of the behaviour of String#next.
For most sortable objects, the following is true:

obj.next > obj

but not for strings. For example:

"9".next => "10"
but
"10" > "9" =...
mike (Michael Selig)
06:56 AM Bug #1317 (Rejected): Creating a range with strings
=begin
irb(main):027:0> Range.new("1", "10").to_a
=> ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"]
irb(main):028:0> Range.new("2", "10").to_a
=> []

The second result happens when the end of the range is greater numerica...
ian (Ian Bailey)
03:56 AM Revision a8eaf316 (git): * lib/mkmf.rb (what_type?): checks more restrictively, and
supports universal binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)

03/26/2009

11:37 PM Bug #1281 (Closed): sdbm extension missing #include ruby.h
=begin
Applied in changeset r23072.
=end
matz (Yukihiro Matsumoto)
04:58 PM Feature #1316 (Rejected): Phasor.rb: Complex number class using polar coordinates
=begin
Hello!

I am writing a sound synthesis program, and I needed a way to easily generate and manipulate complex sound samples (analytic signal), so I wrote a new class by adapting the Ruby Complex Number class by Keiju ISHITSUK...
peterhil (Peter Hillerström)
04:35 PM Revision 29983664 (git): * time.c (time_cmp): negate the result of reverse comparison.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
04:21 PM Revision f0c0f504 (git): * 2009-03-27
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
04:20 PM Revision 5f64ea6c (git): * bignum.c (rb_cmpint): FIX2INT may fail on LP64 platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
02:32 PM Revision 59868494 (git): * ext/sdbm/_sdbm.c: should include "ruby/defines.h" as well for
prototypes of compatibility functions on Win32 platform.
[ruby-core:22870]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
11:21 AM Bug #1157: missing zlib.rb?
=begin
my apologies if this is obvious, but I struggled with the same problem.

gem update fails in a similar manner.

I downloaded the zlib sources from www.zlib.net, went through configure/make/make install.
I then went back...
lmueller (Lutz Mueller)
03:22 AM Revision 8eee0060 (git): * lib/yaml/rubytypes.rb (String#is_binary_data?): TAB would be
usually considered to be included in text data.
* lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil
and is irrelevant to whether a file is binary. copied from
above since TAB and newlines would be usually considered to ...
nobu (Nobuyoshi Nakada)
02:33 AM Revision e0b7af69 (git): * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): considers
--program-prefix and --program-suffix. reapplied r19923.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
01:31 AM Revision 340d9c59 (git): * bin/{irb,rdoc}: executable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)

03/25/2009

09:54 PM Bug #1311: YAML::dump creates strings YAML::load cannot parse
=begin
Good reports, thanks.

I've found a workaround but I'm not sure enough about the YAML spec to guarantee that it's the correct fix.

The patch is mild - it just forces one style over another in the same way as the existing...
daz (Dave B)

03/24/2009

10:45 PM Revision cc11923a (git): * configure.in (target_alias): replaces cpu with universal too.
* configure.in (target): replaces cpu with arch by --with-arch.
* mkconfig.rb (TOPDIR): chops arch in config instead of
RUBY_PLATFORM which varies on universal_binary.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23068 b2dd03c8...
nobu (Nobuyoshi Nakada)
10:44 PM Revision 9eb6a24f (git): * 2009-03-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:44 PM Revision e5ffb6df (git): * mkconfig.rb (MAJOR, MINOR, TEENY): reads from version.h always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:02 PM Bug #1313: gem install not working on windows server 2008
=begin
You need to obtain the exact version of DLLs, follow these instructions:

http://www.garbagecollect.jp/ruby/mswin32/en/documents/install.html

Since the release is this one:

http://www.garbagecollect.jp/ruby/mswin32/...
luislavena (Luis Lavena)
08:55 PM Bug #1313 (Rejected): gem install not working on windows server 2008
=begin
I tried to run:
gem install mysql
after installing
and got prompted for missing dlls
ssleay32 zlib and vsinit

I tried downloading these from http://www.dll-files.com
however when they were installed obtained:

...
djwtech (David Winstanley)
03:36 PM Bug #1312: String#rindex(Regexp, offset) doesn't seem to match greedily
=begin
Hi,

At Tue, 24 Mar 2009 15:16:12 +0900,
David Ellis wrote in [ruby-core:23009]:
> I may be wrong but I was expecting:
> "abcdefg ".rindex(/\w+/,10)
> to return 0.

Wrong expectation.
String#rindex returns the rightmo...
nobu (Nobuyoshi Nakada)
03:19 PM Bug #1312 (Rejected): String#rindex(Regexp, offset) doesn't seem to match greedily
=begin
I may be wrong but I was expecting:
"abcdefg ".rindex(/\w+/,10)
to return 0.

This is what actually happens:
irb(main):003:0> "abcdefg ".rindex(/\w+/,10)
=> 6
irb(main):004:0> $~
=> #<MatchData "g">
irb(ma...
davidkellis (David Ellis)
03:21 PM Revision 8f3eeafd (git): * 2009-03-25
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:21 PM Revision 45b794e8 (git): * lib/cgi.rb: $KCODE always holds its value in upper case.
* lib/jcode.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@23064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
10:23 AM Revision 22a3520d (git): * configure.in (RUBY_CHECK_SIZEOF): need to include $4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
08:11 AM Revision be974b81 (git): * 2009-03-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
08:11 AM Revision 6c024efb (git): * io.c (rb_io_inspect): Cannot access fptr->fd if fptr is NULL.
This fixes a coredump caused by: ruby -e "class X < IO; def
initialize; end; end; p X.new.inspect"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Akinori MUSHA
05:15 AM Bug #1311: YAML::dump creates strings YAML::load cannot parse
=begin
Correction: should read "the second line (after the initial *newline*)"
=end
rampion (Noah Easterly)
04:56 AM Bug #1311 (Closed): YAML::dump creates strings YAML::load cannot parse
=begin
This case seems to occur whenever
* the string begins with a newline, and
* the last line doesn't end in whitespace (except, perhaps, newlines), and
* the second line (after the initial whitespace) begins with more whitesp...
rampion (Noah Easterly)
 

Also available in: Atom