Project

General

Profile

Activity

From 08/05/2009 to 08/11/2009

08/11/2009

11:53 PM Revision 5703c175 (git): * sprintf.c (rb_str_format): should preserve format encoding
before raising CompatibilityError. [ruby-list:46274]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)
11:06 PM Feature #1927 (Closed): rb_w32_readdir seems to be superseded by rb_w32_readdir_with_enc
=begin
Function rb_w32_readdir seems to be superseded by function rb_w32_readdir_with_enc. It renders rb_w32_readdir useless and it should be removed from source code to avoid confusion.

Or better, rb_w32_readdir_with_enc should b...
vo.x (Vit Ondruch)
11:00 PM Bug #1926 (Rejected): Different eval/binding behaviour in 1.9
=begin
In 1.8.6, you can set a local variable in a binding using eval. This doesn't seem to work in 1.9.2-preview1.

def define_a(b)
eval "a=1", b
end

define_a(binding)
puts local_variables.inspect
# 1.8: ...
candlerb (Brian Candler)
10:52 PM Revision e6661119 (git): * encoding.c (rb_enc_compatible): If a string is empty and
other's encoding is US-ASCII, returns the empty string's encoding.
[ruby-list:46274]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
10:39 PM Revision 8b83fc27 (git): * encoding.c (is_data_encoding): fix condition.
* encoding.c (enc_capable): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
03:07 PM Revision e4f14e14 (git): * 2009-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:07 PM Revision 27917406 (git): * ext/digest/sha2/sha2.h: need to include defs.h instead of inttypes.h
because VC6 doesn't have the latter.
* ext/digest/sha2/extconf.rb: rollback r24441.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
03:07 PM Revision 9a28cb24 (git): * 2009-08-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:06 PM Revision d26cfd56 (git): * test/ruby/test_rubyoptions.rb (test_shebang): fix for new behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
02:38 PM Bug #1924 (Closed): マルチバイト文字を含んだパス内で ruby をビルドすると make install で失敗する
=begin
マルチバイト文字を含んだパス内で ruby をビルドすると make install で失敗します。

$ make install
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/rbinstall.rb --make="make" --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --dat...
mrkn (Kenta Murata)
02:14 PM Revision 8e6a754b (git): * lib/date.rb (complete_frags): Monday must be suitable for %W's
default day.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Tadayoshi Funaba
02:08 PM Bug #1911: Memory leak in Dir.glob on Windows
=begin
Nobu, check r23023.
=end
usa (Usaku NAKAMURA)
01:27 PM Revision 3aabcaa3 (git): rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24499 b2dd03c8-39d4-4d8f-98ff-823fe69b080e akr (Akira Tanaka)
12:49 PM Bug #1919: sparc-solaris-2.10 で 1.9.2-preview1 がビルドできない
=begin
Solaris の readdir_r について調べてみたところ、
"readdir_r considered harmful"
http://womble.decadentplace.org.uk/readdir_r-advisory.html
という文章を見つけました。これによると、

> On Linux (with glibc) and most versions of Unix, struct dirent
> is l...
ngoto (Naohisa Goto)
11:42 AM Bug #1919: sparc-solaris-2.10 で 1.9.2-preview1 がビルドできない
=begin
なかだです。

At Mon, 10 Aug 2009 23:40:36 +0900,
Naohisa Goto wrote in [ruby-dev:39060]:
> ruby 1.9.2-preview1 が SPARC 上の Solaris10 で make に失敗します。
>
> 手動で二分検索をやってみたところ、r23240 は make install-nodoc できましたが
> r23241 は make に失敗しました...
nobu (Nobuyoshi Nakada)
12:42 PM Revision 6c54c1f8 (git): * numeric.c (num_divmod): fixed rdoc. [ruby-core:24862]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
12:42 PM Revision 8dfd78fc (git): * numeric.c (num_divmod): fixed rdoc. [ruby-core:24862]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
05:00 AM Revision 65fdc775 (git): * 2009-08-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:00 AM Revision 896285b4 (git): * io.c (rb_sysopen): workaround for MSVCRT's bug.
[ruby-core:24838]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
U.Nakamura
12:13 AM Revision 7e30520a (git): * 2009-08-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:13 AM Revision 915fe3d7 (git): * ChangeLog: fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)

08/10/2009

11:40 PM Bug #1919 (Closed): sparc-solaris-2.10 で 1.9.2-preview1 がビルドできない
=begin
ruby 1.9.2-preview1 が SPARC 上の Solaris10 で make に失敗します。

手動で二分検索をやってみたところ、r23240 は make install-nodoc できましたが
r23241 は make に失敗しました。

以下、1.9.2-preview1 にて make が失敗するところの抜粋です。
(ファイルの場所は一部マスクしています)

$ export PATH=/us...
ngoto (Naohisa Goto)
12:45 PM Revision 60d13203 (git): * include/ruby/intern.h (rb_path2class): no deprecation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
11:36 AM Bug #1918 (Closed): inspect Struct.new results incompatible character encodings on non-ascii structure
=begin
inspect Struct.new results incompatible character encodings on non-ascii name and member.

$ ruby -e "Résumé = Struct.new(:résumé);p Résumé.new"
-e:1:in `inspect': incompatible character encodings: ASCII-8BIT and UTF-8 (Enc...
phasis68 (Heesob Park)
09:10 AM Revision 2915bc4d (git): fix typos
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e znz (Kazuhiro NISHIYAMA)
07:13 AM Revision 51b7ec84 (git): * ChangeLog: sign why.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e authorNari (Narihiro Nakamura)
02:40 AM Revision de5f15bb (git): * gc.c: reject unused longlife gc.
* debug.c: ditto.
* include/ruby/intern.h: ditto.
* include/ruby/ruby.h: ditto.
* iseq.c: ditto.
* node.h: ditto.
* vm_insnhelper.c: ditto.
* vm_insnhelper.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24490 b2dd03...
authorNari (Narihiro Nakamura)

08/09/2009

10:02 PM Revision a8cf4517 (git): * marshal.c (must_not_be_anonymous): fixed silly miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nobu (Nobuyoshi Nakada)
09:55 PM Revision 3ece3836 (git): * marshal.c (class2path, w_unique, w_extended, w_class, w_uclass):
deal with non-ascii class path. [ruby-core:24790]
* marshal.c (r_unique, path2class, path2module, obj_alloc_by_path),
(r_object0): ditto.
* variable.c (rb_path_to_class): new encoding-aware function to
get a class from its name.
...
nobu (Nobuyoshi Nakada)
07:49 PM Feature #1917 (Third Party's Issue): Curses::Window#keypad(true) fails for Curses::Key::ENTER ?
=begin
I am not too sure if this is a bug, my apologizes if it is not.
After creating an instance of Curses::Window, setting keypad to true, it is possible to catch Curses::Key::UP/DOWN/LEFT/RIGHT, but when I try to catch Curses::Key...
robert (Robert Gleeson)
06:49 PM Bug #1445: win32 debug build broken
=begin
Backported as r23628. I suspect 1.8.6 also has this problem.
=end
shyouhei (Shyouhei Urabe)
06:37 PM Bug #1883: REXML hash sometimes computes a value that is too large
=begin
Hi,

At Wed, 5 Aug 2009 04:43:31 +0900,
Tomas Matousek wrote in [ruby-core:24758]:
> This is potential problem for MRI as well since Array#hash blows up if any item's hash is not a Fixnum:

> [C.new].hash # => in `hash': b...
nobu (Nobuyoshi Nakada)
12:31 PM Revision 2083ec98 (git): * ChangeLog: commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
12:26 PM Revision 19a8df54 (git): * 2009-08-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
12:26 PM Revision 6a61d967 (git): * ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.
* ext/tk/tcltklib.c (Init_tcltklib): avoid warning when disable-pthread
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nagai (Hidetoshi Nagai)
12:24 PM Revision 979ac967 (git): * ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e nagai (Hidetoshi Nagai)
10:15 AM Bug #1914: ruby-1.9.1-p243 failed to build from source on aix 5.3 with gcc 4.2.0
=begin
Redmine管理用プロジェクトに報告されてしまったので転送します。


---------- 転送メッセージ ----------
From: Joel Soete <redmine@ruby-lang.org>
日付: 2009/08/09 7:55
件名: [redmine4ruby-lang:253] [Bug #1914] ruby-1.9.1-p243 failed to
build from source on aix 5.3...
yugui (Yuki Sonoda)
07:55 AM Bug #1914 (Closed): ruby-1.9.1-p243 failed to build from source on aix 5.3 with gcc 4.2.0
=begin
Hello all,

I very fall in love of ruby programming language when I discover it some years ago (iirc it was release 1.6) and when in a few days, even thought I am not a programmer, I was able to rewrite in ruby a ksh script o...
rubisher (Joel Soete)
08:44 AM Revision 4ed5e8bb (git): merge revision(s) 24254:
* lib/irb.rb, lib/irb/init.rb, lib/irb/ext/save-history.rb: add
IRB::irb_at_exit. no use finalizer saving history. [ruby-dev-38563]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@24483 b2dd03c8-39d4-4d8f-98ff...
shyouhei (Shyouhei Urabe)
08:29 AM 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 n...
naruse (Yui NARUSE)
08:27 AM Feature #1900 (Closed): Suggestion: Encoding#ascii_compatible?
=begin
Applied in changeset r24480.
=end
naruse (Yui NARUSE)
07:37 AM Revision 83c5dfb7 (git): * common.mk (ruby.imp): excluded prelude.o to get rid of circular
dependency. [ruby-dev:39052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
07:27 AM Bug #1912 (Closed): ripper cannot parse test/ruby/test_object.rb
=begin
Applied in changeset r24479.
=end
nobu (Nobuyoshi Nakada)
01:50 AM Bug #1912 (Closed): ripper cannot parse test/ruby/test_object.rb
=begin
Ripperが -> do end を解析できません。このためtest/ripper/test_files.rb が失敗しています。trunkでも1.9.2でも再現しました。
=end
yugui (Yuki Sonoda)
07:17 AM Bug #1911 (Assigned): Memory leak in Dir.glob on Windows
=begin

=end
nobu (Nobuyoshi Nakada)
05:55 AM Revision 20d6525a (git): * bignum.c (rb_big_cmp, bigsub, big_real_len, bigmul1_normal,
bigmul1_balance, big_split): remove BDIGITS() inside of the loops.
same as r24444.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
mame (Yusuke Endoh)
03:29 AM Bug #1893: Recursive Enumerable#join is surprising
=begin
Is this intentional? Joining an array with struct elements splits them into arrays instead of converting to strings.
=end
bitsweat (Jeremy Daer)
03:06 AM Feature #1906: Kernel#backtrace: Objectifying Kernel#caller
=begin
Ha. I mentioned that this would be desirable in a different thread. Put
me down for an enthusiastic +1.

Have you looked at Rubinius' objectified backtrace?

-- Yehuda

Run Paint Run Run wrote:
> Feature #1906: Kernel#ba...
wycats (Yehuda Katz)
01:49 AM Bug #1527: 1.9 compilation fails on windows if you have the pthread library installed
=begin
Any possibility to get this backported to 1.9.1 branch?
-r
=end
rogerdpack (Roger Pack)
01:29 AM Bug #1676: only last "return" is traced by set_trace_func
=begin
Patch to fix this:

--- compile.c (revision 24476)
+++ compile.c (working copy)
@@ -2959,6 +2959,8 @@
COMPILE_(ret, "BLOCK body", node->nd_head,
(node->nd_next == 0 && poped == 0) ? 0 : 1);
...
mark-moseley (Mark Moseley)

08/08/2009

11:25 PM Revision e56bf07b (git): New API Encoding#ascii_compatible?.
* encoding.c (enc_ascii_compatible_p): added. [ruby-core:24793]
(Init_Encoding): New API Encoding#ascii_compatible?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
naruse (Yui NARUSE)
11:25 PM Bug #1911 (Closed): Memory leak in Dir.glob on Windows
=begin
I found the memory leak in Dir.glob of Ruby 1.9 (trunk) on Windows.

After running this code

ruby -e 'for i in 0..100000;Dir.glob("c:/*");end'

The memory usage is increasing steeply and never decrease.

I guess ...
phasis68 (Heesob Park)
10:25 PM Revision 28f00681 (git): * ext/ripper/eventids2.c (token_to_eventid): added
keyword_do_LAMBDA. [ruby-dev:39049]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
nobu (Nobuyoshi Nakada)
05:11 PM Revision d0e62a55 (git): * 2009-08-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
05:11 PM Revision b1c4052f (git): * tool/compile_prelude.rb: fixes a regexp pattern for require.
It had matched 'require("foo"('.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:35 PM Revision 6f53e25c (git): merges r24403 and r24439 from trunk into ruby_1_9_1.
--
* eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
[ruby-core:24767]
--
* eval.c (rb_exc_raise, rb_exc_fatal): nil is used to reraise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24476 b2dd03c8-39d...
yugui (Yuki Sonoda)
03:35 PM Revision 226a7a81 (git): merges r24415,r24426,r24427,r24428,r24433,r24434 and r24435 from trunk into ruby_1_9_1.
--
* 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]
--
* ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
n...
yugui (Yuki Sonoda)
03:35 PM Revision 217fbb2c (git): merges r24425 from trunk into ruby_1_9_1.
--
* encoding.c (rb_enc_associate_index): cannot set encoding on
special constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:35 PM Revision ff3f19a1 (git): merges the latter half of r24423 from trunk into ruby_1_9_1.
* encoding.c (enc_capable, rb_enc_get_index): Symbol is encoding
capable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:35 PM Revision 968f2e86 (git): merges r24422 from trunk into ruby_1_9_1.
--
* encoding.c (rb_enc_get_index): fixed indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:34 PM Revision 9f79faa5 (git): merges r24408 and r24409 from trunk into ruby_1_9_1.
--
* ruby.c (rb_stdio_set_default_encoding): declared.
--
* io.c (rb_stdio_set_default_encoding): prototyped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:34 PM Revision 39276280 (git): merges r24407 from trunk into ruby_1_9_1.
--
* debug.c (ruby_dummy_gdb_enums): made public. [ruby-dev:39001]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:34 PM Revision 48500e49 (git): merges r24405 from trunk into ruby_1_9_1.
--
* 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/...
yugui (Yuki Sonoda)
03:34 PM Revision 4ef1f3ea (git): merges r24404 from trunk into ruby_1_9_1.
--
* bootstraptest/test_exception.rb: test for [ruby-core:24767].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:34 PM Revision df359ef4 (git): merges r24401 from trunk into ruby_1_9_1.
--
* eval.c (rb_longjmp): reset raised flag before fatal error.
* eval_error.c (error_print): file can be NULL. line can be 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:33 PM Revision b1e7a961 (git): merges r24396 from trunk into ruby_1_9_1.
--
* 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/branches/ruby_1_9_1@24466 b2dd03c...
yugui (Yuki Sonoda)
03:33 PM Revision 59dc7d4c (git): merges r24389 from trunk into ruby_1_9_1.
--
* 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_9_1@24465 b2dd03c8-39d4-4d8f-98ff-823fe69b...
yugui (Yuki Sonoda)
03:33 PM Revision dd8b1350 (git): merges r24381 from trunk into ruby_1_9_1.
--
* thread.c (recursive_push): need to set UNTRUST. [ruby-dev:38997]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:33 PM Revision 5c4e0523 (git): merges r24372 from trunk into ruby_1_9_1.
--
* 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/branches/ruby_1_9_1@24463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:32 PM Revision 4f19613f (git): merges r24371 from trunk into ruby_1_9_1.
--
* 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/branches/ruby_1_9_1@24462 b2dd03c8...
yugui (Yuki Sonoda)
03:32 PM Revision 66a76d0c (git): merges r24368 from trunk into ruby_1_9_1.
--
* lib/README: updated. a patch from Daniel Bovensiepen.
[ruby-core:24693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:32 PM Revision 2fd67662 (git): merges r24367 from trunk into ruby_1_9_1.
--
* 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_9_1@24460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:32 PM Revision 7ad4bd13 (git): merges r24364 from trunk into ruby_1_9_1.
--
* 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/branches/ruby_1_9_1@24459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:31 PM Revision 208ec993 (git): merges r24361 from trunk into ruby_1_9_1.
--
* numeric.c (flo_hash): normalize -0.0 to 0.0. [ruby-core:24577]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:31 PM Revision 04f65b41 (git): merges r24342 and r24348 from trunk into ruby_1_9_1.
--
Can't use singlebyte optimization when the replacement is multibyte. [ruby-core:24612]
* string.c (tr_trans): can't use singlebyte optimization when
the replacement is multibyte. [ruby-core:24612]
--
* string.c (tr_trans)...
yugui (Yuki Sonoda)
03:31 PM Revision 944148dd (git): merges r24337 from trunk into ruby_1_9_1.
--
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
after setting defualt internal and external.
git-sv...
yugui (Yuki Sonoda)
03:30 PM Revision a036553e (git): merges r24341 from trunk into ruby_1_9_1.
--
* lib/securerandom.rb (SecureRandom.random_bytes): return string should
be ASCII-8BIT. [ruby-core:24640]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
03:28 PM Revision 66fc689c (git): * 2009-08-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
03:28 PM Revision a9719054 (git): merges r24332 and r24333 from trunk into ruby_1_9_1.
--
* parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled as
NODE_STR. [ruby-dev:38968]
* bootstraptest/test_syntax.rb: add a test for above.
--
* parse.y (literal_concat_gen): reduced unnecessary node at string
literal ...
yugui (Yuki Sonoda)
10:56 AM Revision ff17ee0d (git): merges r24328 from trunk into ruby_1_9_1.
--
* gem_prelude.rb (Gem.path): uses Gem.default_path as a default value
so that ruby finds gems in ~/.gem/.
(Gem.user_home): reduced version of lib/rubygems.rb's.
Gem.default_path needs it.
git-svn-id: svn+ssh://ci.ruby-lang.org...
yugui (Yuki Sonoda)
10:56 AM Revision 23cc3c2b (git): merges r24323 from trunk into ruby_1_9_1.
--
* compile.c (iseq_compile_each): fix stack consistency error.
[ruby-core:24611]
* bootstraptest/test_method.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24451 b2dd03c8-39d4-4d8f-98ff-823...
yugui (Yuki Sonoda)
10:56 AM Revision 66b90d0f (git): merges r24321 from trunk into ruby_1_9_1.
--
* insns.def (defineclass): preserve encoding of class/module
names. [ruby-core:24600]
* variable.c (rb_set_class_path_string): set class path with a
string value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@...
yugui (Yuki Sonoda)
10:56 AM Revision 391fc1e8 (git): merges r24271 from trunk into ruby_1_9_1.
--
* io.c (argf_eof): should not have reached EOF before trying to
read. based on a patch by Heesob Park <phasis AT gmail.com> at
[ruby-core:24559]. [ruby-core:24557]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1...
yugui (Yuki Sonoda)
10:55 AM Revision 1b7c7c5c (git): merges r24258 from trunk into ruby_1_9_1.
--
* lib/irb/ruby-lex.rb: make irb be able to parse
string_dvar. [ruby-core: 24051]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
yugui (Yuki Sonoda)
10:52 AM Revision 408ffaaa (git): * 2009-08-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@24447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e svn[bot]
10:52 AM Revision b6a98140 (git): merges r24243 from trunk into ruby_1_9_1.
--
* vm_core.h (struct rb_iseq_t): add a new field line_no. This field
represents line number from which the original code of the iseq
starts. [ruby-dev:38698]
* iseq.c, compile.c: ditto.
* parse.y: line number hack (for Proc#sou...
yugui (Yuki Sonoda)
10:29 AM Feature #1900: Suggestion: Encoding#ascii_compatible?
=begin
Hi,

In message "Re: [ruby-core:24800] [Feature #1900] Suggestion: Encoding#ascii_compatible?"
on Fri, 7 Aug 2009 01:40:21 +0900, Yui NARUSE <redmine@ruby-lang.org> writes:

|This seems reasonable.
|How do you think mat...
matz (Yukihiro Matsumoto)
10:03 AM Bug #1909 (Rejected): Strange behavior IO#ungetc at the beginning of the stream
=begin
This works:
io = File.open("a.txt", "r+")
io.read(0)
p io.pos # => 0
io.ungetc(100)
p io.pos # => 0

while this doesn't:
io = File.open("a.txt", "r+")
p io.pos # =...
tmat (Tomas Matousek)
08:14 AM Bug #1908 (Rejected): readline ignores inputrc
=begin
Applications using readline library should automatically load either ~/.inputrc or /etc/inputrc, per the GNU Readline docs. This doesn't appear to be working Ruby's readline library.

To reproduce:
1. create ~/.inputrc wit...
dmw (David Whetstone)
05:34 AM Revision 0ecfb5f6 (git): fix the name in the entry
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e matz (Yukihiro Matsumoto)
02:47 AM Revision 43073402 (git): * bignum.c (bigzero_p): removing BDIGITS() inside of the
loop. inspired by Hitohiro Kanai's blog entry
<http://d.hatena.ne.jp/CanI/20090807/1249657492>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (Yukihiro Matsumoto)

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
mark-moseley (Mark Moseley)
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
mark-moseley (Mark Moseley)
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...
mark-moseley (Mark Moseley)
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
nobu (Nobuyoshi Nakada)
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.
...
runpaint (Run Paint Run Run)
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
naruse (Yui NARUSE)
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. ...
runpaint (Run Paint Run Run)
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...
no6v (Nobuhiro IMAI)
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
akr (Akira Tanaka)
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
akr (Akira Tanaka)
01:50 AM Bug #1904: cmp required?
=begin
補足です。

baseruby用にruby_1_8をビルドしたときにautoconf,gcc,bison,makeなどは入れていて、trunkをビルドしようとすると追加でdiffutilsに含まれるcmpが必要だったという話です。
=end
znz (Kazuhiro NISHIYAMA)
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...
znz (Kazuhiro NISHIYAMA)

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...
phasis68 (Heesob Park)
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
runpaint (Run Paint Run Run)
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...
candlerb (Brian Candler)
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...
runpaint (Run Paint Run Run)
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...
usa (Usaku NAKAMURA)
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
usa (Usaku NAKAMURA)
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:...
usa (Usaku NAKAMURA)
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
knu (Akinori MUSHA)
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...
usa (Usaku NAKAMURA)
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 nobu (Nobuyoshi Nakada)
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 nobu (Nobuyoshi Nakada)
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
Akinori MUSHA
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
Akinori MUSHA
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 Akinori MUSHA
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 Akinori MUSHA
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
Akinori MUSHA
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
Akinori MUSHA
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 svn[bot]
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 nagai (Hidetoshi Nagai)
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 svn[bot]
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 nagai (Hidetoshi Nagai)
03:47 PM Bug #1896 (Closed): Segfault for Method#== with :send
=begin
Applied in changeset r24421.
=end
nobu (Nobuyoshi Nakada)
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/...
runpaint (Run Paint Run Run)
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...
runpaint (Run Paint Run Run)
01:07 PM Bug #1892 (Closed): mkmf.rb:1008:in check_sizeof: undefined local variable or method `opts'
=begin
Applied in changeset r24418.
=end
nobu (Nobuyoshi Nakada)
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
manveru (Michael Fellinger)
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...
bitsweat (Jeremy Daer)
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 U.Nakamura
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 U.Nakamura
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
Akinori MUSHA
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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 nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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 nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
knu (Akinori MUSHA)
12:17 AM Feature #1877 (Closed): IPAddr#hash should consider a mask_addr
=begin
Applied in changeset r24411.
=end
knu (Akinori MUSHA)
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 akr (Akira Tanaka)

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] と同等でなくなった事は、いい
|> 事ばかりでもないように...
matz (Yukihiro Matsumoto)
05:14 AM Bug #1787: URI ライブラリの正規表現パターン
=begin
成瀬です。

Tadayoshi Funaba wrote:
>>> 話が少しずれますが、標準ライブラリでは、少くとも scanf、time、date など
>>> で同様の問題がでるように思います。一般に、\d が [0-9] ではなくなった事
>>> 態にどう対処するのが正しいでしょうか。
>> 個別具体的に、そのライブラリに置いて \d と [0-9] のどちらが「正しい」かを
>>
判断する事になります。
>> URIは許さな...
naruse (Yui NARUSE)
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
Akinori MUSHA
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 svn[bot]
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
akr (Akira Tanaka)
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...
runpaint (Run Paint Run Run)
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...
naruse (Yui NARUSE)
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...
runpaint (Run Paint Run Run)
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,...
naruse (Yui NARUSE)
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]...
runpaint (Run Paint Run Run)
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...
naruse (Yui NARUSE)
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...
runpaint (Run Paint Run Run)
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 svn[bot]
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
Akinori MUSHA
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...
mame (Yusuke Endoh)
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...
marcandre (Marc-Andre Lafortune)
12:40 PM Bug #1749 (Closed): Change in How $~ is Restored After String#sub/String#gsub with a Block
=begin

=end
naruse (Yui NARUSE)
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...
tmat (Tomas Matousek)
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
nobu (Nobuyoshi Nakada)
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 nobu (Nobuyoshi Nakada)
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 naruse (Yui NARUSE)
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 nobu (Nobuyoshi Nakada)
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
shyouhei (Shyouhei Urabe)
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:

...
marcandre (Marc-Andre Lafortune)
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 ...
marcandre (Marc-Andre Lafortune)
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...
ujihisa (Tatsuhiro Ujihisa)
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...
marcandre (Marc-Andre Lafortune)
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
matz (Yukihiro Matsumoto)
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...
tmat (Tomas Matousek)
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....
nobu (Nobuyoshi Nakada)
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...
panesofglass (Ryan Riley)
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 nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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 nobu (Nobuyoshi Nakada)
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 nobu (Nobuyoshi Nakada)
03:37 AM Bug #1878 (Closed): testrb can not execute tests in sub directory
=begin
Applied in changeset r24397.
=end
nobu (Nobuyoshi Nakada)
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
nobu (Nobuyoshi Nakada)
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
runpaint (Run Paint Run Run)
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...
nobu (Nobuyoshi Nakada)
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"...
runpaint (Run Paint Run Run)
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 naruse (Yui NARUSE)
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...
naruse (Yui NARUSE)
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
runpaint (Run Paint Run Run)
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...
matz (Yukihiro Matsumoto)
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...
runpaint (Run Paint Run Run)
 

Also available in: Atom