Sun Jan 10 17:25:24 2010  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* lib/webrick/accesslog.rb : Escape needed.

	* lib/webrick/httpstatus.rb : ditto.

	* lib/webrick/httprequest.rb : ditto.

	* lib/webrick/httputils.rb : ditto.

	* test/webrick/test_cgi.rb (TestWEBrickCGI::test_bad_): Test for it.

Sat Dec  5 18:52:56 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* string.c (rb_str_justify): CVE-2009-4124.
	  Fixes a bug reported by 
	  Emmanouel Kellinis <Emmanouel.Kellinis AT kpmg.co.uk>, KPMG London;
	  Patch by nobu.

Sat Dec  5 14:29:49 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* lib/irb/extend-command.rb (IRB::ExtendCommandBundle::def_extend_command):
	  extension commands with optional parameters have been broken because of 
	  a spec change of UnboundMethod#arity.

Sat Dec  5 14:24:10 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* lib/irb/extend-command.rb (IRB::ExtendCommandBundle::def_extend_command):
	  gives eval a source location for readability of backtrace.

	* lib/irb/extend-command.rb (IRB::ContextExtender::def_extend_command):
	  ditto

	* lib/irb/extend-command.rb (IRB::MethodExtender::def_pre_proc):
	  ditto

	* lib/irb/extend-command.rb (IRB::MethodExtender::def_post_proc):
	  ditto

Tue Jul 21 21:37:19 2009  Keiju Ishitsuka  <keiju@emperor2.pendome>

	* lib/irb/cmd/help.rb: fixed irb's "help" command. [ruby-core:22310].

Thu Jul 23 14:35:02 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions
	  mean to call runtime's open() if textmode.

Fri Sep 25 16:01:45 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to
	  replace MSVCRT's access().
	  [ruby-core:25761]

	* file.c (eaccess): workaround for recent MSVCRT is no longer needed.

Mon Sep 28 19:36:20 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* win32/wini32.c (LK_ERR): with overlapped I/O, LockFileEx() returns
	  ERROR_IO_PENDING if the file is locked.

Mon Nov 23 04:12:00 2009  Tanaka Akira  <akr@fsij.org>

	* enc/trans/newline.trans (fun_so_universal_newline): generate \n
	  after \r\n detection instead of just after \r.
	  [ruby-list:45988] [ruby-core:25881] [ruby-core:26788]

Tue Dec  1 12:01:13 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (dyna_push_gen, dyna_pop_gen): no needs to save both of
	  args and vars.  [ruby-core:26961]

	* parse.y (dyna_push_gen): use rb_node_newnode() for ripper.
	  [ruby-core:26961]

	* parse.y (dyna_push_gen, dyna_pop_gen): adjust local vtable level
	  for the case of syntax errors in method name or argument inside
	  do block.   [ruby-core:26961]

Tue Oct 20 15:28:49 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (method_call): dispatch symbols.  a patch from Andy Keep in
	  [ruby-core:26169].  [ruby-core:26165]

	* parse.y (mlhs_basic): fixed handling splat in middle of mlhs.  a
	  patch from Andy Keep in [ruby-core:26163]
Thu Oct 15 16:57:38 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (rb_intern3): check symbol table overflow.
	  [ruby-core:26092]

Sun Oct 11 15:54:52 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* ext/gdbm/gdbm.c (fgdbm_select): fixed rdoc.  a patch from Justin
	  Collins in [ruby-core:26050].

Sat Aug 22 01:29:29 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* lib/mkmf.rb (rm_f, rm_rf): pass the last hash through if exists.
	  [ruby-dev:39153]

Tue Oct 20 14:50:51 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (parser_here_document): dispatch delayed heredoc
	  contents.  based on a patch from Andy Keep in [ruby-core:24855].

Fri Jan 30 18:04:23 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* win32/win32.c (rb_w32_write): limit write size to 32KB if the file
	  seems to be console.  [ruby-core:21613]

Sat Oct  3 22:14:18 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (bv_decls, bvar): fix for block variables.
	  [ruby-dev:39423]

Sat Oct  3 00:47:52 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* test/ripper/dummyparser.rb (DummyParser): improvement by Magnus
	  Holm in [ruby-core:25884].
	  * remove scanner events which simply returned the first argument.
	  * all parser events are now automatically generated.
	  * simplify blocks.

Fri Oct  2 20:37:37 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID by
	  NODE to track local variable assignment.

	* parse.y (lvar_defined_gen, assignable_gen): enable local
	  variable check.  [ruby-core:24923]

	* parse.y (validate): use value only.

	* test/ripper/test_parser_events.rb (test_local_variables): tests
	  based on a patch from Magnus Holm in [ruby-core:25885].

Fri Oct  2 15:34:15 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* thread.c (ruby_suppress_tracing): get rid of clobbering by
	  longjmp.

Fri Oct 16 12:03:31 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* lib/csv.rb (CSV#raw_encoding): returns ASCII-8BIT when the io
	  doesn't have encoding.

Fri Oct 16 03:15:52 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* lib/csv.rb (CSV#read_to_char): set encoding and verify data
	  which read from io before encode it to @encoding.

	* lib/csv.rb (CSV#raw_encoding): add to get @io's encoding.

	* lib/csv.rb (CSV#read_io): add to read string and set @io's
	  encoding.

Mon Sep 28 22:33:11 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* dln.c (aix_loaderror): needs format string.

Mon Sep 28 10:06:38 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* stringio/stringio.c (strio_read): set ASCII-8BIT encoding
	  when length argument is given.

Sun Sep 27 13:06:43 2009  Tanaka Akira  <akr@fsij.org>

	* lib/pp.rb (PP:ObjectMixin#pretty_print): delegates has no inspect
	  method.  [ruby-core:25804]

Sat Sep 26 08:35:12 2009  Koichi Sasada  <ko1@atdot.net>

	* iseq.c (compile_string): rename to parse_string(), because
	  this function only parse String to NODE.

Thu Sep 24 09:41:42 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when
	  requiring lib/mathn
	  [ruby-core:25740]

Tue Sep 22 05:04:08 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* ext/bigdecimal/lib/bigdecimal/{ludcmp,math}.rb: depend on
	  bigdecimal.

	* ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.

Tue Sep 22 01:10:02 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* ossl_config.c (ossl_config_add_value_m, ossl_config_set_section):
	  Check if frozen (or untrusted for $SECURE >= 4) [ruby-core:18377]

Sun Sep 20 11:11:34 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* struct.c (rb_struct_equal, rb_struct_eql): Handle comparison of
	  recursive structures [ruby-core:24759]

	* range.c (range_eq, range_eql):  ditto for ranges

Fri Sep 18 23:51:17 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* marshal.c (r_object0): entry regexp object before its encoding
	  name.  [ruby-core:25625]

Sun Aug 16 00:30:33 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* include/ruby/oniguruma.h
	  (ONIGENC_CTYPE_SPECIAL_MASK): added.
	  (ONIGENC_CTYPE_D): ditto.
	  (ONIGENC_CTYPE_S): ditto.
	  (ONIGENC_CTYPE_W): ditto.

	* regparse.c: \d, \s and \w are now non Unicode class.
	  [ruby-dev:39026]
	  (fetch_token_in_cc): use ONIGENC_CTYPE_[DSW] for \d/\s/\w.
	  (fetch_token): ditto.
	  (add_ctype_to_cc): add routines for ONIGENC_CTYPE_[DSW].
	  (parse_exp): ditto.

	* test/ruby/test_regexp.rb (TestRegexp#test_char_class):
	  add tests for above.

Fri Sep 18 16:15:04 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* compile.c (iseq_compile_each), parse.y (stmt, arg): arg_concat()
	  on op_asgn was inversed.  [ruby-core:25629] [Bug #2050]

Sat Sep  5 15:21:13 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

 * compile.c (iseq_compile_each): op_asgn to aref should return rhs.
   [ruby-core:25387]

Sun Feb 15 03:50:21 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* hash.c (rb_hash): always return a fixnum value because a return
	  value of rb_hash may be used as a hash value itself and bignums have
	  no unique VALUE.

	* test/ruby/test_hash.rb: add a test for above.

Tue Nov 17 16:04:13 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* regparse.c (parse_char_class): fixes a wrong merge r25531.

Tue Nov 17 16:01:02 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* insns.def (opt_case_dispatch): need cast.

Tue Nov 17 15:46:23 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* dir.c (READDIR): this branch doesn't have rb_w32_readdir_with_enc().

Fri Sep 18 07:06:41 2009  Kazuhiro NISHIYAMA  <zn@mbf.nifty.com>

	* test/fileutils/test_fileutils.rb: add a test for [ruby-dev:39345]

Fri Sep 18 06:36:51 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* lib/mkmf.rb (rm_f, rm_rf): FileUtils.rm can take an array.
	  [ruby-dev:39345]

Thu Oct 29 01:22:01 2009  Yutaka Kanemoto  <kanemoto@ruby-lang.org>

	* ext/socket/extconf.rb : Compilation failure on AIX.
	  ss_len (a member of struct sockaddr_storage) has preceding __,
	  but ss_family does not have it from AIX 5.2.

Mon Sep 28 01:28:17 2009  Yutaka Kanemoto  <kanemoto@ruby-lang.org>

	* Makefile.in (miniruby): suppress duplication warning on AIX.

Mon Sep 28 01:13:25 2009  Yutaka Kanemoto  <kanemoto@ruby-lang.org>

	* common.mk (ruby.imp): add text section [Bug #2064].

	* common.mk (ruby.imp): do not export Init_*.

Thu Sep 24 01:14:18 2009  Yutaka Kanemoto  <kanemoto@ruby-lang.org>

	* dln.c (aix_loaderror): fixed typo. suppress warnings.

Sun Aug  9 16:36:51 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* common.mk (ruby.imp): excluded prelude.o to get rid of circular
	  dependency.  [ruby-dev:39052]

Thu Sep 17 06:03:40 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* lib/matrix.rb (Matrix#rank): Two bug fixes. One made
	  Matrix[[0,0],[0,0],[1,0]].rank raise a NoMethodError while the other
	  one had Matrix[[0,1],[0,0],[1,0]].rank raise a TypeError.

Wed Sep 16 17:20:49 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* lib/matrix.rb (Matrix#/): Fix obvious bug

Wed Sep 16 13:39:10 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* lib/matrix.rb (determinant): Bug fix where determinant failed on
	  some matrices [ruby-core:23597]

Mon Sep 14 06:42:21 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* lib/cgi/cookie.rb (value): Keep CGI::Cookie#value in sync with the
	  cookie itself. Based on a patch by Arthur Schreiber [ruby-core:17634]

Mon Sep 14 05:21:12 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* lib/net/http.rb (fetch): Handle properly default values; a patch by
	  Arthur Schreiber [ruby-core:18308]

Sun Sep 13 12:07:49 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* include/ruby/ruby.h (SYM2ID): needs parens.

	* include/ruby/ruby.h (NUM2INT, NUM2LL, INT2NUM, UINT2NUM),
	  (LONG2NUM, ULONG2NUM, NUM2CHR, rb_type_p, rb_special_const_p):
	  GCC specific optimization.

Sun Sep 13 09:38:06 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* lib/prime.rb (EratosthenesGenerator#initialize): call super.
	  (TrialDivisionGenerator, Generator23): ditto.  [ruby-core:25539]

Sun Sep 13 08:30:30 2009  Masaki Suketa  <masaki.suketa@nifty.ne.jp>

	* ext/win32ole/win32ole.c: fix WIN32OLE_TYPELIB.new when the 1st 
	  argument is the non-registered file.

Sun Nov  1 22:04:33 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* test/ruby/test_module.rb (TestModule#test_method_added): new test
	  method. Patch by James M. Lawrence.
	  c.f. [ruby-core:25536], r24867.

Sun Sep 13 01:15:49 2009  Tanaka Akira  <akr@fsij.org>

	* lib/open-uri.rb (URI::FTP#buffer_open): fix the %2F handling.

Sat Sep 12 22:47:24 2009  Tanaka Akira  <akr@fsij.org>

	* lib/open-uri.rb (URI::FTP#buffer_open): use the port specified in
	  the URI.

Sat Sep 12 07:52:59 2009  Masaki Suketa  <masaki.suketa@nifty.ne.jp>

	* ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result
	  variant value.

Fri Sep 11 10:38:33 2009  URABE Shyouhei  <shyouhei@ruby-lang.org>

	* lib/net/http.rb (Net::HTTPHeader::encode_kvpair): also call to_s
	  to k.  A patch from swdyh <youhei@gmail.com>
	  http://github.com/swdyh/ruby/tree/c847f43c2ccb679b9ff728f8b1b16c6ceeb57f39

Fri Sep 11 09:45:11 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* dln.c (aix_loaderror): get rid of using uninitialized value in the
	  case loadquery fails.  fixed wrong index variable usage.  see
	  [ruby-core:25479].

Fri Sep 11 01:14:00 2009  Marc-Andre Lafortune  <ruby-core@marc-andre.ca>

	* lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber.
	  [ruby-core:18309].

Thu Sep 10 21:22:01 2009  Tanaka Akira  <akr@fsij.org>

	* test/dl/test_cptr.rb (test_free=): test SEGV at first.
	  [ruby-dev:39269]

Tue Mar  3 15:05:19 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.

Tue Sep  8 08:32:30 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.
	  see [ruby-dev:39249].

Tue Mar  3 15:03:19 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* test/dl: moved from ext/dl/test.

Sat Sep  5 10:38:46 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* compile.c (iseq_compile_each): &&= and ||= should return rhs.
	  [ruby-dev:39163] (#1996), [ruby-core:25143]

Fri Sep  4 04:46:08 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* lib/webrick/httpservlet/abstract.rb (do_OPTIONS): method names
	  are symbols now.  [ruby-core:24580]

Sun Mar 15 09:17:26 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* common.mk (.y.c): use SRC_FILE which contains slashes instead of
	  backslashes.  [ruby-core:22891]

Tue Sep  1 19:56:28 2009  Koichi Sasada  <ko1@atdot.net>

	* vm_eval.c (eval_string_with_cref): fix to check local_table_size.
	  [ruby-dev:39205] [Bug #2024]

Sun Aug 30 16:38:56 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (rb_enc_symname2_p): not depend on nul terminator.

Sun Aug 30 01:15:31 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* ext/zlib/zlib.c (gzfile_read_all): use gzfile_newstr;
	  set and convert its encoding. [ruby-dev:38304]

Thu Aug 27 18:31:07 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* vm_method.c (rb_remove_method_id): exported.

	* numeric.c (num_sadded): fix for non-ascii method name.

Thu Aug 27 08:16:34 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* ext/strscan/strscan.c (strscan_set_string): set string should not be
	  dupped or frozen, because freezing it causes #concat method failure,
	  and unnecessary to dup without freezing.  a patch from Aaron
	  Patterson at [ruby-core:25145].

Wed Aug 26 12:36:58 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* vm.c (collect_local_variables_in_env): skips internal variables.
	  [ruby-core:25125]

Mon Aug 24 16:35:57 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* st.c (st_delete_safe): deals with packed entries.
	  [ruby-core:25080]

	* st.c (st_cleanup_safe): ditto.  [ruby-core:25081]

Sun Aug 23 00:56:13 2009  Tanaka Akira  <akr@fsij.org>

	* thread.c (rb_thread_schedule): don't recur infinitely.
	  (rb_threadptr_execute_interrupts): ditto.
	  [ruby-dev:38060]

Sat Aug 22 00:03:19 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* thread.c (rb_check_deadlock): decrease number of sleepers before
	  deadlock detection because the deadlock exception makes main thread
	  run.  [ruby-dev:39142]

Fri Aug 21 15:01:35 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* ext/readline/readline.c (readline_readline): use rb_prep_terminal
	  only on Windows.

Thu Aug 20 14:39:47 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* ext/readline/readline.c (Init_readline): add rl_prep_terminal(1).
	  insited by jitte [ruby-list:43546]

Thu Aug 20 08:39:50 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* thread.c (rb_thread_terminate_all): do not ignore interrupt when
	  reaping threads on termination.  [ruby-dev:39107]

Thu Aug 20 01:06:48 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* dir.c (DEFINE_STRUCT_DIRENT): use union to allocate sufficient
	  memory space for Solaris.  a patch from Naohisa GOTO
	  <ngoto at gen-info.osaka-u.ac.jp> in [ruby-dev:39132].
	  [ruby-dev:39062]

	* configure.in (SIZEOF_STRUCT_DIRENT_TOO_SMALL): Solaris dirent
	  check.

Thu Aug 20 23:39:51 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* parse.y (reduce_nodes_gen): preserve NODE_FL_NEWLINE flag during
	  node reducing.  [ruby-core:24463]

Wed Aug 19 02:54:01 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* test/ruby/test_settracefunc.rb (test_return, test_return2): add two
	  tests for [ruby-dev:38701] and [ruby-core:24463].

Wed Aug 19 01:08:34 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* compile.c (NODE_RETURN): fire return event at explicit return.
	  [ruby-dev:38701]

Tue Aug 18 11:37:24 2009  wanabe  <s.wanabe@gmail.com>

	* vm_insnhelper.c (vm_call_cfunc): ensure hook c-return.
	  [Bug #1588]

	* test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_raise):
	  follow above.

Mon Aug 17 14:35:03 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string):
	  must be ascii compatible.

Sun Aug 16 23:58:22 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (yylex): should dispatch scan-event even when follows
	  just after delayed-token.  [ruby-dev:37855] [Bug #1071]

Sun Aug 16 15:25:26 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* lib/csv.rb: Change magic comment to US-ASCII in order to
	  make literals as US-ASCII.

Sun Aug 16 10:45:10 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* regparse.c (parse_char_class, parse_exp, parse_branch),
	  (parse_subexp): fixed memory leak.  a patch from Ralf Junker
	  <ralfjunker AT gmx.de> at [ruby-core:24921].

Sun Aug 16 01:10:00 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* regparse.c (add_ctype_to_cc_by_range): fix the first
	  character bigger than sb_out was dropped.

	* test/ruby/test_regexp.rb (TestRegexp#test_posix_bracket):
	  add tests for above.

Fri Aug 14 14:31:33 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* configure.in (rubyhdrdir): fixed typo.  [ruby-dev:39079]

Fri Aug 14 00:29:22 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* doc/ChangeLog-1.8.0: add forgotten entry contributed by
	  TAKAHASHI Kaoru.  [ruby-dev:39065]

Fri Aug 14 00:19:49 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* lib/delegate.rb (Delegator#method_missing): __FILE__ may contain
	  multi-byte characters.  a patch from Kenta Murata in [ruby-dev:39066].

Thu Aug 13 21:01:03 2009  wanabe  <s.wanabe@gmail.com>

	* vm.c (vm_exec): returning from lambda runs ensure section.
	  [Bug #1729]

Wed Aug 12 15:52:04 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* class.c (rb_define_module_id_under): fix the name.

	* class.c (rb_define_module_under): fix for prevvious changes.

Wed Aug 12 15:32:16 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* class.c (rb_define_class_id_under, rb_define_module_id_under):
	  new functions to define a nested class/module with non-ascii
	  name.

	* struct.c (make_struct): use name with encoding.

	* struct.c (inspect_struct): ditto.  [ruby-core:24849]

Wed Aug 12 Wed Aug 12 14:54:34 2009  Koichi Sasada  <ko1@atdot.net>

	* insns.def, vm.c, vm_insnhelper.c, vm_insnhelper.h: check
	  definition of (classes)#=== for case/when optimization.
	  Fix Bug #1376 [ruby-core:23190].

	* string.c (Init_String), bignum.c (Init_Bignum),
	  numeric.c (Init_Numeric): define String#===, Symbol#===,
	  Bignum#===, Fixnum#===, Float#=== as same as (classes)#==.

Wed Aug 12 12:59:51 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* string.c (rb_str_new_frozen): must not change encoding of frozen
	  shared string.  [ruby-dev:39068]

Fri Oct 23 10:51:04 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* test/ruby/test_m17n.rb (TestM17N#test_sprintf_s):
	  added an assertion for [ruby-list:46274].
	  see also r24506.

Tue Oct 20 17:57:31 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* marshal.c (w_symbol, r_symreal): fixed the order of symbol and
	  its encoding modifier, in order to make the dump readable from
	  1.8.  [ruby-dev:39515]

Mon Aug 10 21:45:26 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 
 	* include/ruby/intern.h (rb_path2class): no deprecation.

Mon Aug 10 06:55:45 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* 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.

Sat Aug  8 06:18:29 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* 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]

Sun Aug  9 07:25:07 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* ext/ripper/eventids2.c (token_to_eventid): added
	  keyword_do_LAMBDA.  [ruby-dev:39049]

Fri Aug  7 03:22:50 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* eval.c (rb_exc_raise, rb_exc_fatal): nil is used to reraise.

Wed Aug  5 12:54:00 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
	  [ruby-core:24767]

Fri Aug  7 01:49:41 2009  Akinori MUSHA  <knu@iDaemons.org>

	* 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]

Fri Aug  7 01:35:26 2009  Akinori MUSHA  <knu@iDaemons.org>

	* ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
	  checked here. [ruby-dev:39032]

Thu Aug  6 21:18:15 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* ext/digest/sha2/lib/sha2.rb: should require sha2.so.

Thu Aug  6 21:11:40 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* ext/digest/sha2/sha2.c (*_Final): typos.

Thu Aug  6 19:46:56 2009  Akinori MUSHA  <knu@iDaemons.org>

	* ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
	  necessary. [ruby-dev:39029]

Thu Aug  6 01:37:20 2009  Akinori MUSHA  <knu@iDaemons.org>

	* 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]

Thu Aug  6 16:25:08 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* encoding.c (enc_capable, rb_enc_get_index): Symbol is encoding
	  capable.

	* encoding.c (rb_enc_associate_index): cannot set encoding on
	  special constants.

Wed Aug  5 19:11:01 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* ruby.c (rb_stdio_set_default_encoding): declared.

Wed Aug  5 18:46:01 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* debug.c (ruby_dummy_gdb_enums): made public.  [ruby-dev:39001]

Wed Aug  5 12:39:23 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* eval.c (rb_longjmp): reset raised flag before fatal error.

	* eval_error.c (error_print): file can be NULL. line can be 0.

Wed Aug  5 01:38:27 2009  Yusuke Endoh  <mame@tsg.ne.jp>
 
	* 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].

Tue Aug  4 22:10:34 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* win32/win32.c (has_redirection): need to execute shell if commandline
	  includes newline.  cf. [ruby-core:24560]

Tue Aug  4 05:43:03 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* thread.c (recursive_push): need to set UNTRUST.  [ruby-dev:38997]

Mon Aug  3 18:25:08 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* sample/svr.rb: obsolete TCPserver renamed.  [ruby-core:24712]

	* sample/tsvr.rb: ditto.

	* sample/dualstack-httpd.rb: ditto.

Mon Aug  3 18:12:54 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* thread.c (recursive_push): untrust internal hash to prevent
	  unexpected SecurityError.  a patch from Kazuhiro NISHIYAMA.
	  Fix: #1864  [ruby-dev:38982]

Mon Aug  3 17:06:05 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* lib/README: updated.  a patch from Daniel Bovensiepen.
	  [ruby-core:24693]

Mon Aug  3 16:28:09 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* win32/win32.c (rb_w32_connect): return value was broken when some
	  error occurred.
	  [ruby-core:24234]

Mon Aug  3 15:48:40 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* array.c (rb_ary_{permutation,combination}): disallow reentrance
	  with continuation since work-buffers cannot restore.

	* array.c (rb_ary_{permutation,combination,product}): must not use
	  ary_discard on strings.

Sat Aug  1 19:23:27 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* string.c (tr_trans): change condition of singlebyte
	  optimization.

Sat Aug  1 05:18:36 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* string.c (tr_trans): can't use singlebyte optimization when
	  the replacement is multibyte. [ruby-core:24612]

Fri Jul 31 16:28:33 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* io.c (rb_stdio_set_default_encoding): added.

	* ruby.c (process_options): call rb_stdio_set_default_encoding
	  after setting defualt internal and external.

Fri Jul 31 18:01:34 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* lib/securerandom.rb (SecureRandom.random_bytes): return string should
	  be ASCII-8BIT.  [ruby-core:24640]

Fri Jul 31 10:54:08 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* parse.y (literal_concat_gen): reduced unnecessary node at string
	  literal concatenation with empty head dstr.  [ruby-dev:38968]

Fri Jul 31 02:57:39 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* 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.

Thu Jul 30 23:04:32 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* 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.

Thu Jul 30 21:39:42 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* compile.c (iseq_compile_each): fix stack consistency error.
	  [ruby-core:24611]

	* bootstraptest/test_method.rb: add tests for above.

Thu Jul 30 16:45:39 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* 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.

Sat Jul 25 17:49:03 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* io.c (argf_eof): should not have reached EOF before trying to
	  read.  based on a patch by Heesob Park <phasis AT gmail.com> a
	  [ruby-core:24559].  [ruby-core:24557]

Thu Jul 23 17:31:02 2009  Keiju Ishitsuka  <keiju@ruby-lang.org>

	* lib/irb/ruby-lex.rb: make irb be able to parse
	  string_dvar. [ruby-core: 24051]

Wed Jul 22 22:23:24 2009  Yusuke Endoh  <mame@tsg.ne.jp>

	* 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#source_location) is no longer
	  needed.

	* test/ruby/test_settracefunc.rb: line number of set_trace_func is now
	  compatible with 1.8's.

Wed Jul 22 02:33:57 2009  Keiju Ishitsuka  <keiju@emperor2.pendome>

	* lib/irb.rb: forget svn commit.

Wed Jul 22 00:34:39 2009  Keiju Ishitsuka  <keiju@ruby-lang.org>

	* 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]

Tue Jul 21 20:41:20 2009  Keiju Ishitsuka  <keiju@emperor2.pendome>

	* lib/tracer.rb: no show lines unkonwn line number. [ruby-core:22096],
          no trace display  c-call and c-return as default.

Tue Jul 21 16:07:57 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* lib/tracer.rb: toplevel caller exists now.  [ruby-core:24454]

Mon Jul 20 12:51:39 2009  wanabe  <s.wanabe@gmail.com>

	* lib/matrix.rb (Matrix#rank): revert a part of r20859 to avoid
	  infinite loop.  [Bug #1020]

Sun Jul 19 17:32:37 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* io.c (io_read): should taint the result.   [ruby-dev:38826]

Sat Jul 18 23:44:59 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* re.c (reg_enc_error): use rb_enc_get to get the encoding of
	  a Regexp object. REGEXP(re)->ptr->enc is the encoding of the
	  regexp engin for patterns and target strings.
	  [ruby-core:23208]

Sat Jul 18 07:06:31 2009  Hidetoshi NAGAI  <nagai@ai.kyutech.ac.jp>

	* ext/tk/lib/tk.rb,ext/tk/lib/tk/grid.rb: Bug fix on grid_slaves().
	  Extend usage pattern of grid_column()/grid_row().

Sat Jul 18 06:30:35 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* include/ruby/win32.h: include winsock headers in extern "C++" for
	  C++ extension libraries.

	* include/ruby/missing.h (vsnprintf): workaround for VC++.
	  [ruby-core:23096]

Sat Jul 18 00:23:47 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* ext/readline/readline.c (Init_readline): rl_catch_signals does
	  not exist on some platform like Mac OS X 10.5.

	* ext/readline/extconf.rb: checks existance of rl_catch_signals.

Fri Jul 17 22:29:21 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* ext/readline/readline.c (Init_readline): use rl_catch_sigwinch only
	  when existing.

	* ext/readline/extconf.rb: check existance of rl_catch_sigwinch, and
	  workaround for native Win32 readline port.

Fri Nov 28 17:52:26 2008  Keiju Ishitsuka  <keiju@ruby-lang.org>

	* lib/foerwardable.rb: should be usable def_single_delegator for
	  Class and Module.
	  [ruby-dev:38815]

Thu Jul 16 18:28:09 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longer
	  used.  [ruby-dev:38760]

Thu Jul 16 08:56:32 2009  Koichi Sasada  <ko1@atdot.net>

	* dir.c (push_glob): re-fix GC problem.

Wed Jul 15 23:45:11 2009  Koichi Sasada  <ko1@atdot.net>

	* dir.c (push_glob): fix GC problem.

Tue May  5 10:42:28 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* ext/json: Update to JSON 1.1.4.

Wed Jul 15 16:29:35 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* win32/Makefile.sub (LIBPATHFLAG): path is already quoted in mkmf.rb.

Tue Jul 14 17:29:20 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* string.c (rb_str_index_m): return nil if pos is out of string.
	  [ruby-core:23660]

Tue Jul 14 01:06:31 2009  Yusuke Endoh  <mame@tsg.ne.jp>

 	* enumerator.c (yielder_yield_i): use rb_proc_new instead of
 	  rb_iterate.  [ruby-dev:38518]
 
 	* README.EXT: rb_iterate is obsolete since 1.9; use rb_block_call
 	  instead.
 
 	* README.EXT.ja: ditto.

Mon Jul 13 22:49:50 2009  Yuki Sonoda (Yugui)  <yugui@yugui.jp>

	* lib/prime.rb (Prime#prime_division): now decomposes
	  negative integer into a decomposition with element [-1, 1].

	* test/test_prime.rb: test for it.

Mon Jul 13 22:28:03 2009  NAKAMURA Usaku  <usa@ruby-lang.org>

	* io.c (pipe_open): handles leaked on win32 when an error occurs.

Tue Jul 14 01:24:56 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* marshal.c (r_object0): should return real object.

Mon Jul 13 20:21:51 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* marshal.c (r_object0): should not shadow outer variable not to
	  return Qnil always.

Mon Jul 13 19:41:05 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* marshal.c (r_object0): copy instance variables to new regexp.

Fri Jul 10 14:41:34 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* marshal.c (r_object0): set encoding only if the encoding
	  is not US-ASCII.

Fri Jul 10 11:41:39 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* include/ruby/ruby.h (rb_obj_{untrust,untrusted,trust}): added
	  prototypes.  [ruby-dev:38756]

Fri Jul 10 10:25:19 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* vm_insnhelper.c (vm_search_superclass): checks for implici
	  argument passing before method search.  [ruby-core:24244]

Thu Jul  9 21:56:59 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* marshal.c (r_object0): replace \u by u when the regexp is
	  made by Ruby 1.8. [ruby-dev:36750]

Wed Jul  8 16:47:03 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* file.c (rb_file_s_basename): returns new string instead of
	  shared string from FilePathStringValue().  [ruby-core:24199]

Wed Jul  8 04:28:16 2009  Eric Hodel  <drbrain@segment7.net>

	* ext/.document:  Update with extensions that appear to have
	  documentation.  [ruby-core:24181]

Tue Jul  7 10:12:37 2009  NARUSE, Yui  <naruse@ruby-lang.org>

	* io.c (rb_io_ext_int_to_encs): Set external encoding if
	  ext==intern. [ruby-dev:38278]

Mon Jul  6 08:00:10 2009  Yukihiro Matsumoto  <matz@ruby-lang.org>

	* enum.c (enum_to_a): should propagate taint to the return value.
	  [ruby-core:24152]

	* enum.c (enum_sort_by): ditto.

Mon Jul  6 09:31:50 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* proc.c (make_curry_proc): should propagate lambda-ness.
	  [ruby-core:24127]

Sun Jul  5 14:04:36 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* thread.c (rb_threadptr_exec_event_hooks): new function to
	  execute event hooks, with preserving errinfo.  [ruby-core:24118]

Sun Jul  5 08:08:25 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>

	* vm_insnhelper.c (vm_yield_setup_block_args): restores the firs
	  arg where is overwritten at funcall.  [ruby-core:24139]

Fri Jul  3 19:48:40 2009  Tadayoshi Funaba  <tadf@dotrb.org>

	* complex.c: undef-ed shome methods.  [ruby-core:24110]

	* complex.c (Numeric#arg): NaN for NaN.  [ruby-core:24116]

Thu Jul  2 07:53:44 2009  Nobuyoshi Nakada  <nobu@ruby-lang.org>
