Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3,692 commits
  • 228 files changed
  • 0 comments
  • 7 contributors
This comparison is big! We're only showing the most recent 250 commits
Aug 21, 2007
Urabe, Shyouhei * lib/net/imap.rb (ResponseParser#next_token): fixed
	  error message. (backported from HEAD)
	* lib/net/imap.rb (ResponseParser#parse_error): fixed
	  the condition not to refer @token.symbol unexpectedly.
	  Thanks, Dick Monahan. (backported from HEAD)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13134 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a2ca2ab
Urabe, Shyouhei * process.c (ruby_setreuid, ruby_setregid): rename to get rid of name
	  clash.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8aec1c9
Urabe, Shyouhei * eval.c (rb_kill_thread): renamed in order to get rid of conflict
	  with a BeOS system function.  [ruby-core:10830]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fdad216
Urabe, Shyouhei * configure.in (darwin): prohibit loading extension libraries to
	  miniruby.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d931637
Urabe, Shyouhei * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser): handle more
	  extensions.  [ruby-dev:30972]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
52501b3
Urabe, Shyouhei * ext/dl/lib/dl/win32.rb: seems that dl doesn't accept void argument.
	  fixed [ruby-bugs:PR#5489].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e78da70
Urabe, Shyouhei * variable.c (rb_path2class): get rid of dangling pointer caused by
	  optimized out value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ae2d632
Aug 22, 2007
Urabe, Shyouhei * eval.c (ruby_cleanup): return EXIT_FAILURE if any exceptions occured
	  in at_exit blocks.  [ruby-core:11263]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
4357f31
Urabe, Shyouhei * process.c (proc_exec_v, rb_proc_exec): preserve errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
5de33d8
Urabe, Shyouhei * parse.y (dsym): return non-null NODE even if yyerror(). based on a
	  patch from from Yusuke ENDOH <mame AT tsg.ne.jp>.  [ruby-dev:31085]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
30b0889
Urabe, Shyouhei * parse.y (yylex): return non-valid token for an invalid
	  instance/class variable name.  a patch from from Yusuke ENDOH
	  <mame AT tsg.ne.jp>.  [ruby-dev:31095]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
5a41ffc
Urabe, Shyouhei * array.c (rb_ary_initialize): should call rb_ary_modify() first.
	  [ruby-core:11562]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7a62a9f
Urabe, Shyouhei * sprintf.c (rb_f_sprintf): sign bit extension should not be done
	  if FPLUS flag is specified.  [ruby-list:39224]
	  numbers if FZERO is specified.  [ruby-list:39218]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
92a9118
Urabe, Shyouhei * bcc32/{Makefile.sub,setup.mak}: remove surplus slash from srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019652
Urabe, Shyouhei * random.c: documentation fix. srand(0) initializes PRNG with '0',
	  not with random_seed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
83ef7ad
Urabe, Shyouhei * struct.c (rb_struct_init_copy): disallow changing the size.
	  [ruby-dev:31168]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b60852e
Urabe, Shyouhei * lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
	  ::CONFIG which is an alias of MAKEFILE_CONFIG.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d3c8811
Urabe, Shyouhei * win32/win32.c (CreateChild): enclose command line except for
	  command.com which can not handle quotes.  [ruby-talk:258939]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
730e44e
Urabe, Shyouhei * numeric.c (fix_pow): 0**2 should not raise floating point
	  exception.  [ruby-dev:31216]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b441a68
Urabe, Shyouhei * bignum.c (rb_big_neg): SIGNED_VALUE isn't in 1.8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d47a440
Urabe, Shyouhei * bignum.c (rb_cstr_to_inum): check leading non-digits.
	  [ruby-core:11691]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8f72681
Urabe, Shyouhei * ext/digest/digest.c (rb_digest_instance_update,
	  rb_digest_instance_finish, rb_digest_instance_reset,
	  rb_digest_instance_block_length): %s in rb_raise() expects char*.
	  [ruby-dev:31222]
	* ext/openssl/ossl.h: include ossl_pkcs5.h.  [ruby-dev:31231]
	* ext/openssl/ossl_pkcs5.h: new file for PKCS5.  [ruby-dev:31231]
	* ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise()
	  instead of rb_raise().  [ruby-dev:31222]
	* ext/sdbm/_sdbm.c: DOSISH platforms need io.h.  [ruby-dev:31232]
	* ext/syck/syck.h: include stdlib.h for malloc() and free().
	  [ruby-dev:31232]
	* ext/syck/syck.h (syck_parser_set_input_type): prototype added.
	  [ruby-dev:31231]
	* win32/win32.c: include mbstring.h for _mbspbrk().  [ruby-dev:31232]
	* win32.h (rb_w32_getcwd): prototype added.  [ruby-dev:31232]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
9ea0e11
Urabe, Shyouhei * sprintf.c (rb_f_sprintf): more checks for format argument.
	  [ruby-core:11569], [ruby-core:11570], [ruby-core:11571],
	  [ruby-core:11573]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
48f6951
Urabe, Shyouhei * lib/base64.rb (Base64::b64encode): should not specify /o option
	  for regular expression.  [ruby-dev:31221]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c467fe9
Urabe, Shyouhei * numeric.c (fix_pow): integer power calculation: 0**n => 0,
	  1**n => 1, -1**n => 1 (n: even) / -1 (n: odd).
	* test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test
	  suite.  pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d199291
Urabe, Shyouhei * time.c (time_succ): Time#succ should return a time object in the
	  same timezone mode to the original.  [ruby-talk:260256]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f25a57b
Urabe, Shyouhei * bignum.c (rb_big_pow): refine overflow check. [ruby-dev:31242]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c204c6b
Urabe, Shyouhei * bignum.c (rb_big_lshift, rb_big_rshift): separated functions
  to get rid of infinite recursion.  fixed calculation in edge
  cases.  [ruby-dev:31244]
* numeric.c (rb_fix_lshift, rb_fix_rshift): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
78cc8cc
Urabe, Shyouhei * eval.c (get_backtrace): check the result more.
	  [ruby-dev:31261] [ruby-bugs-12398]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1a68238
Urabe, Shyouhei * ext/openssl/ossl_config.c (ossl_config_set_section): do not
	  initialize aggregations with dynamic values.  [ruby-talk:259306]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
075a278
Urabe, Shyouhei * lib/mkmf.rb (init_mkmf): should remove mkmf.log too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fb5155a
Urabe, Shyouhei * {win32,wince,bcc32}/setup.mak (-version-): no RUBY_EXTERN magic.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e83c25d
Urabe, Shyouhei * lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_H
	  only if extconf.h is created.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
55dc6ed
Urabe, Shyouhei * file.c (rb_file_s_rename): deleted code to get rid of a bug of
	  old Cygwin.
	* file.c (rb_file_truncate): added prototype of GetLastError()
	  on cygwin.  [ruby-dev:31239]
	* intern.h (is_ruby_native_thread): prototype.
	* missing/strftime.c (strftime): fix printf format and actual
	  arguments.
	* ext/Win32API/Win32API.c (Win32API_initialize): ditto.
	* ext/tk/tcltklib.c (ip_finalize): ditto.
	* ext/dl/ptr.c (rb_dlptr_inspect): ditto.  [ruby-dev:31268]
	* ext/dl/sym.c (rb_dlsym_inspect): ditto.
	* ext/socket/getnameinfo.c: include stdio.h always.
	* ext/win32ole/win32ole.c (ole_hresult2msg, folevariable_name,
	  folevariable_ole_type, folevariable_ole_type_detail,
	  folevariable_value, folemethod_visible): missing return value.
	


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f93d2d1
Urabe, Shyouhei * intern.h (is_ruby_native_thread): removed since declared as an int
	  function in ruby.h already.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2ae425e
Urabe, Shyouhei * dln.c (conv_to_posix_path): removed.
	* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return
	  VALUE instead of a pointer to static buffer.
	* ruby.c (push_include_cygwin): fixed buffer overflow.
	  [ruby-dev:31297]
	* ruby.c (ruby_init_loadpath): not convert built-in paths.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
913747d
Urabe, Shyouhei * ext/digest/lib/digest.rb (Digest::self.const_missing): avoid
	  infinite recursive const_missing call.  [ruby-talk:262193]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c64c48f
Urabe, Shyouhei * bignum.c (rb_big_aref): check for Bignum index range.
	 [ruby-dev:31271]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
215f80a
Urabe, Shyouhei * sprintf.c (rb_f_sprintf): should not check positional number as
	  width.  [ruby-core:11838]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d9e196f
Urabe, Shyouhei * ext/extmk.rb (extmake): save all CONFIG values.
	* ext/extmk.rb (extmake): remove mkmf.log at clean, and extconf.h at
	  distclean, respectively.
	* ext/extmk.rb: remove rdoc at clean, and installed list file at
	  distclean, respectively.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
32db855
Urabe, Shyouhei git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13214…
… b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0fae676
Urabe, Shyouhei * lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
59aa42c
Urabe, Shyouhei * configure.in (ac_cv_func_isinf): set yes also on OpenSolaris.
	  [ruby-Bugs-12859]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a18125c
Urabe, Shyouhei * ext/pty/pty.c (establishShell): handshaking before close slave
	  device.  [ruby-talk:263410]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
679e43e
Urabe, Shyouhei * lib/rinda/tuplespace.rb: fix Rinda::TupleSpace keeper thread bug.
	  the thread is started too early. [ruby-talk:264062] 
	* test/rinda/test_rinda.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e66f118
Urabe, Shyouhei * hash.c (rb_hash_delete_key): delete the entry without calling block.
	* hash.c (rb_hash_shift): should consider iter_lev too.
	* hash.c (delete_if_i): use rb_hash_delete_key() so that the block
	  isn't called twice.  [ruby-core:11556]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
cb0bb99
Sep 07, 2007
Urabe, Shyouhei * bignum.c (big_lshift): make shift offset long type.
	  (big_rshift): ditto.
	  (rb_big_lshift): ditto.
	  (big_rshift): ditto.
	  [ruby-dev:31434]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
3095333
Urabe, Shyouhei * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keep
	  comment lines first.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b659581
Urabe, Shyouhei * process.c (detach_process_watcher): should not pass the pointer
	  to an auto variable to the thread to be created.  pointed and
	  fix by KUBO Takehiro <kubo at jiubao.org>  [ruby-dev:30618]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0c56b5e
Urabe, Shyouhei * ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ef04db7
Urabe, Shyouhei * eval.c (mnew): should preserve noex as safe_level.
	* eval.c (rb_call0): tighten security check condition..


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
27c7fd9
Urabe, Shyouhei * ext/win32ole/win32ole.c (ole_type_progid, reg_enum_key,
	  reg_get_val, ole_wc2mb): fix the bug. Thanks, arton. 
	  [ruby-dev:31576]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ae6dd09
Urabe, Shyouhei * include/ruby/defines.h (flush_register_windows): call "ta 0x03"
	  even on Linux/Sparc.  [ruby-dev:31674]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
6f3d4a8
Urabe, Shyouhei * configure.in (group_member): check if presents.
	* configure.in (XCFLAGS): add _GNU_SOURCE on linux.
	* file.c (group_member): use system routine if available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
05f10eb
Urabe, Shyouhei * string.c (rb_str_splice): integer overflow for length.
	  [ruby-dev:31739]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
80c37b7
Urabe, Shyouhei * array.c (rb_ary_fill): need integer overflow check.
	  [ruby-dev:31738]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f3196ac
Urabe, Shyouhei * array.c (rb_ary_subseq): need integer overflow check.
	  [ruby-dev:31736]
	* array.c (rb_ary_splice): ditto.  [ruby-dev:31737]
	* array.c (rb_ary_fill): ditto.  [ruby-dev:31738]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e90f7de
Urabe, Shyouhei * eval.c (rb_thread_start_0): should unset time_thread_alive_p.
  [ruby-talk:257219], [ruby-core:11542], [ruby-dev:31253]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
09edb78
Sep 16, 2007
Urabe, Shyouhei * range.c (range_step): fixed integer overflow. [ruby-dev:31763]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b3376c4
Urabe, Shyouhei * ruby.c (proc_options): -W should be allowed in RUBYOPT
	  environment variable.  [ruby-core:12118]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7e7b52d
Urabe, Shyouhei git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13459…
… b2dd03c8-39d4-4d8f-98ff-823fe69b080e
84cc67f
Urabe, Shyouhei * runruby.rb: fix incomplete backport r12339.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0b01850
Urabe, Shyouhei * ext/thread/thread.c (lock_mutex): should take care of threads
	  not waiting any longer; there cases of a thread raising
	  exceptions. [ ruby-Bugs-11901 ]

	* test/thread/test_thread.rb (test_mutex_exception_handling):
	  test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d9a45b6
Sep 19, 2007
Urabe, Shyouhei * bignum.c (bigtrunc): RBIGNUM(x)->len may be zero. out of bound
	  access.  [ruby-dev:31404]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
de72459
Sep 22, 2007
Urabe, Shyouhei * lib/rdoc/options.rb (Options::check_diagram): dot -V output
	  changed. [ ruby-Bugs-11978 ], Thanks Florian Frank.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
756354d
Urabe, Shyouhei * ext/stringio/stringio.c (strio_init): separate from strio_initialize
	  to share with strio_reopen properly.  [ruby-Bugs-13919]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
13d5a28
Sep 23, 2007
Urabe, Shyouhei * eval.c, intern.h, ext/thread/thread.c: should not free queue while
	  any live threads are waiting.  [ruby-dev:30653]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
50b224d
Sep 24, 2007
Urabe, Shyouhei * lib/net/http.rb: an SSL verification (the server hostname should
	  be matched with its certificate's commonName) is added.
	  this verification can be skipped by
	  "Net::HTTP#enable_post_connection_check=(false)".
	  suggested by Chris Clark <cclark at isecpartners.com>
	* lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to
	  perform SSL post connection check.
	* ext/openssl/lib/openssl/ssl.c
	(OpenSSL::SSL::SSLSocket#post_connection_check): refine error message.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13504 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
df067e3
Oct 02, 2007
* Fixes a bug in the pretty printer related to an incomplete refactor…
…ing.

* Fixes another bug related to the formatting code refactoring in 3.1.7
* Fixes ticket:99, and adds Henrik's unit test (with minor modifications)
* Fixes ticket:102.
  Fix provided by kevinj -- thanks!  Great job.
* Implements namespace validation in the baseparser.  This means that, as per
  the XML namespace spec, unbound prefixes generate UndefinedNamespaceException.
  Also, as per the namespace spec, the 'xml' prefix must be bound to 
  http://www.w3.org/XML/1998/namespace, and the 'xmlns' prefix must not be declared. 
  in the XML.
* Eggbeater missed one.
* Fix for ticket:115
* Fixes a bug in the pretty printer related to an incomplete refactoring.
* Merge code cleanups
* Fixes another bug related to the formatting code refactoring in 3.1.7
* Indentation fix.
* r1342@bean (orig r12846):  nobu | 2007-07-25 17:18:55 -0400
  * lib/rexml/formatters/*.rb: set properties.
* r1358@bean (orig r12883):  nobu | 2007-08-06 04:36:31 -0400
  * lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax.
* r1359@bean (orig r13096):  nobu | 2007-08-18 02:03:45 -0400
  * lib/rexml/rexml.rb: removed doubled constant.
* r1360@bean (orig r13097):  nobu | 2007-08-18 02:12:48 -0400
  * lib/rexml/rexml.rb: added encoding.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
07d9346
Oct 03, 2007
Urabe, Shyouhei Sorry SER, reverting r13600, which brakes make test-all''
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
80018be
Nov 04, 2007
Fixes a bug in the pretty printer related to an incomplete refactoring.
  Fixes another bug related to the formatting code refactoring in 3.1.7
  Fixes ticket:99, and adds Henrik's unit test (with minor modifications)
  Fixes ticket:102.
    Fix provided by kevinj -- thanks!  Great job.
  Implements namespace validation in the baseparser.  This means that, as per
    the XML namespace spec, unbound prefixes generate UndefinedNamespaceException.
    Also, as per the namespace spec, the 'xml' prefix must be bound to 
    http://www.w3.org/XML/1998/namespace, and the 'xmlns' prefix must not be declared. 
    in the XML.
  Fix for ticket:115
  Fixes a bug in the pretty printer related to an incomplete refactoring.
  Merge code cleanups
  Fixes another bug related to the formatting code refactoring in 3.1.7
  Indentation fix.
  lib/rexml/formatters/*.rb: set properties.
  lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax.
  lib/rexml/rexml.rb: removed doubled constant.
  lib/rexml/rexml.rb: added encoding.
  Fixes ticket:110
  Missing include for UndefinedNamespaceException was causing errors in some
    cases.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@13815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
37886ed
Dec 02, 2007
Urabe, Shyouhei patchlevel 112
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@14089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
340a644
Urabe, Shyouhei * test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb,
	  test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured
	  declaring XML namespaces.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@14091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2024133
Mar 03, 2008
Urabe, Shyouhei merge revision(s) 15677:
	* lib/webrick/httpservlet/filehandler.rb: should normalize path
	  separators in path_info to prevent directory traversal attacks
	  on DOSISH platforms.
	  reported by Digital Security Research Group [DSECRG-08-026].
	* lib/webrick/httpservlet/filehandler.rb: pathnames which have
	  not to be published should be checked case-insensitively.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@15678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
702da30
Mar 10, 2008
Nobuyoshi Nakada * ChangeLog: fixed indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@15738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dc22d51
May 17, 2008
Nobuyoshi Nakada * file.c (file_expand_path): support for alternative data stream
  and ignored trailing garbages of NTFS.

* file.c (rb_file_s_basename): ditto.

* file.c (rb_file_s_extname): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
79b5968
Nobuyoshi Nakada * file.c (file_expand_path): rb_str_set_len is not backported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
86a6bd6
Nobuyoshi Nakada * file.c (OpenFile): prevent conflict on Windows.
* file.c (USE_NTFS): fixed merge miss.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b881b57
Nobuyoshi Nakada * file.c (file_expand_path): fix for short file name on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f47aeff
Nobuyoshi Nakada * file.c (isdirsep): backslash is valid path separator on cygwin too.
  backported from 1.8 HEAD.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c54db30
May 20, 2008
* lib/webrick/httpservlet/filehandler.rb: should normalize path
  name in path_info to prevent script disclosure vulnerability on
  DOSISH filesystems. (fix: CVE-2008-1891)
  Note: NTFS/FAT filesystem should not be published by the platforms
  other than Windows. Pathname interpretation (including short
  filename) is less than perfect.

* lib/webrick/httpservlet/abstract.rb
  (WEBrick::HTTPServlet::AbstracServlet#redirect_to_directory_uri):
  should escape the value of Location: header.

* lib/webrick/httpservlet/cgi_runner.rb: accept interpreter
  command line arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
4fc6b25
Jun 03, 2008
Urabe, Shyouhei merge revision(s) 13479:13481:
	* process.c (struct rb_exec_arg): proc should be a VALUE.
	* process.c (rb_f_exec): suppress a warning.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1f81e3a
Urabe, Shyouhei merge revision(s) 13497:
	* gc.c (os_obj_of, os_each_obj): hide objects to be finalized.
	  [ruby-dev:31810]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2062a91
Urabe, Shyouhei merge revision(s) 13513:
	* parse.y (yyerror): limit error message length.  [ruby-dev:31848]
	* regex.c (re_mbc_startpos): separated from re_adjust_startpos.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
34cc624
Jun 04, 2008
Urabe, Shyouhei merge revision(s) 13515:
	* Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other
	  objects.  [ruby-Bugs-14228]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
18bdc02
Urabe, Shyouhei merge revision(s) 13586:
	* eval.c (remove_method): should not remove undef place holder.
	  [ruby-dev:31817]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16816 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1ecb29f
Jun 05, 2008
Urabe, Shyouhei merge revision(s) 13587:
	* gc.c (id2ref): valid id should not refer T_VALUE nor T_ICLASS.
	  [ruby-dev:31911]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
eca461a
Urabe, Shyouhei merge revision(s) 13601:
	* win32/win32.c (init_env): initialize HOME and USER environment
	  variables unless set. [ruby-core:12328] (merge from trunk)
	* win32/win32.c (NtInitialize, getlogin): ditto.
	* configure.in, win32/Makefile.sub (LIBS): need to link shell32
	  library for SH* functions on mswin32 and mingw32.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
82c551e
Urabe, Shyouhei merge revision(s) 13602:
	* win32/win32.c (make_cmdvector): adjust escaped successive
	  double-quote handling. (merge from trunk)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
3a7b4c0
Jun 07, 2008
Urabe, Shyouhei merge revision(s) 13657:
	* lib/net/http.rb, lib/open-uri.rb: remove
	  Net::HTTP#enable_post_connection_check.  [ruby-dev:31960]
	* lib/net/imap.rb: hostname should be verified against server's
	  indentity as persented in the server's certificate. [ruby-dev:31960]
	* ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c69584e
Urabe, Shyouhei merge revision(s) 13678:
	* {bcc32,win32}/Makefile.sub (COMMON_MACROS): workaround for old SDK's
	  bug. [ruby-core:12584]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0cbba01
Urabe, Shyouhei merge revision(s) 13688:
	* {bcc,win}32/mkexports.rb: explicit data.  [ruby-list:44108]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d3f86f8
Urabe, Shyouhei merge revision(s) 13694:
	* win32/mkexports.rb: deal with __fastcall name decorations.
	  [ruby-list:44111]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b3ee04c
Urabe, Shyouhei merge revision(s) 13695:
	* configure.in (AC_SYS_LARGEFILE): keep results also in command
	  options, to vail out of mismatch.  [ruby-list:44114]
	* mkconfig.rb, lib/mkmf.rb (configuration): add DEFS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
bcdcde3
Urabe, Shyouhei merge revision(s) 13699:
	* ext/socket/socket.c (s_accept_nonblock): make accepted fd
	  nonblocking.  [ruby-talk:274079]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16899 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
56f39de
Urabe, Shyouhei merge revision(s) 13699:13704:
	* marshal.c (r_bytes0): refined length check.  [ruby-dev:32059]
	* marshal.c (r_bytes0): check if source has enough data.
	  [ruby-dev:32054]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b296c48
Urabe, Shyouhei merge revision(s) 13771:
	Merged 13767, 13768, 13769, and 13770 from trunk.
	* lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that
	  caused time zone conversion to fail for some ISO 8601 date formats.
	  [ruby-Bugs-12677]
	* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
	  the HTTP connection to support keepalive requests. [ruby-Bugs-9353]
	* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
	  message for Content-Type check failures. [ruby-core:12163]
	* lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type):
	  Making Content-Type checks case insensitive. [ruby-Bugs-3367]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d40bafa
Urabe, Shyouhei merge revision(s) 13774:
	* io.c (rb_io_tell, rb_io_seek): check errno too.  [ruby-dev:32093]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
4c1e0db
Urabe, Shyouhei merge revision(s) 13779:13782:
	Merged 13781 from trunk.
	* lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in
	  addition to "password" for Telnet login prompts. [ruby-Bugs-10746]
	Merged 13779 from trunk.
	* lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
	  pattern case insensitive. [ruby-Bugs-10746]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b940547
Urabe, Shyouhei merge revision(s) 13785:
	* numeric.c (fix_pow): returns infinity for 0**-1.  [ruby-dev:32084]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24a9bf9
Urabe, Shyouhei merge revision(s) 13823:
	* lib/optparse.rb (OptionParser::Switch::summarize): fix for long form
	  option with very long argument.  a patch from Kobayashi Noritada
	  <nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fd0f7b0
Urabe, Shyouhei merge revision(s) 13830:
	* lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x for
	  nkf conversion.  a patch from <moonwolf AT moonwolf.com>.
	  [ruby-dev:32183]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
19638a7
Urabe, Shyouhei merge revision(s) 13902, 13907, 13914:
	* numeric.c (flo_divmod): round to the nearest integer.
	  [ ruby-Bugs-14540 ]
	* numeric.c (flodivmod): work around for inifinity.
	* numeric.c (flo_divmod): work around for platforms have no round().
	  [ruby-dev:32247]
	* numeric.c (round): fallback definition.
	* numeric.c (flo_divmod, flo_round): use round() always.
	  [ruby-dev:32269]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
198898b
Urabe, Shyouhei merge revision(s) 13914:13917:
	* missing/isinf.c (isinf): don't define if the macro is defined.
	* numeric.c (flodivmod): work around for infinity.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
98d6f01
Urabe, Shyouhei merge revision(s) 13935:
	* lib/cgi/session.rb (CGI::Session::FileStore::restore): use
	  lockfile for exclusive locks.  a patch from <tommy AT tmtm.org>.
	  [ruby-dev:32296]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d56b279
Urabe, Shyouhei merge revision(s) 13936:13938:
	* ext/curses/extconf.rb: check macro if cannot find func.
	  [ruby-list:44224]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0d029c6
Urabe, Shyouhei merge revision(s) 13951:
	* ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
24de771
Urabe, Shyouhei merge revision(s) 13957:
	* eval.c (rb_alias): do not call hook functions until initialization
	  finishes.  [ruby-talk:279538]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
65035f9
Urabe, Shyouhei merge revision(s) 13989:
	* object.c (nil_plus): remove unused function.  [ruby-core:13737]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
6fe602a
Urabe, Shyouhei merge revision(s) 14036:14039:
	* bignum.c (rb_big2str0): do not clobber space for sign.
	* sprintf.c (remove_sign_bits): extends sign bit first.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f69caed
Urabe, Shyouhei merge revision(s) 14045, 14059:
	* parse.y (stmt): remove unnecessary NODE_BEGIN.  [ruby-core:13814]
	* parse.y (newline_node): set line from outermost node before removing
	  NODE_BEGIN.  [ruby-dev:32406]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
143e45a
Urabe, Shyouhei merge revision(s) 14071:
	Merged 14070 from trunk.
	
	* lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling so
	  pressing control-c in the controlling terminal or sending SIGTERM stops
	  the XML-RPC server.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
77b1b68
Urabe, Shyouhei merge revision(s) 14086:
	* eval.c (error_print): put newline unless multiple line message ends
	  with a newline.  [ruby-dev:32429]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0b9586c
Urabe, Shyouhei merge revision(s) 14095:
	* bignum.c (rb_cstr_to_inum): trailing spaces may exist at sqeezing
	  preceeding 0s.  [ruby-core:13873]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a2eab05
Urabe, Shyouhei merge revision(s) 14153:
	* lib/cgi.rb (read_multipart): exclude blanks from header values.
	  [ruby-list:44327]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12de999
Urabe, Shyouhei merge revision(s) 14178:
	* lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAME
	  regular expression.  a patch from Ueda Satoshi
	  <s-ueda AT livedoor.jp>.  [ruby-dev:32514]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
03d22a2
Urabe, Shyouhei merge revision(s) 14222:14225:
	* configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined
	  and its type.
	* configure.in (timezone, altzone): check for recent cygwin.
	* missing/strftime.c (strftime): fix for timezone.  [ruby-dev:32536]
	* lib/mkmf.rb (try_var): should fail for functions.
	* ext/readline/extconf.rb: should use have_func for functions instead
	  of have_var.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
bd82f4c
Urabe, Shyouhei merge revision(s) 14255:
	* gc.c (stack_end_address): use local variable address instead of
	  __builtin_frame_address(0) to avoid SEGV on SunOS 5.11 on x86 with 
	  gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08a04c8
Urabe, Shyouhei merge revision(s) 14313:
	* parse.y (f_rest_arg): check if duplicated.  [ruby-core:14140]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b09f1c5
Urabe, Shyouhei merge revision(s) 14316:
	* configure.in (TIMEZONE_VOID): check whether timezone requires zero
	  arguments.  [ruby-dev:32631]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a2d8727
Urabe, Shyouhei merge revision(s) 14465:
	* lib/date.rb: don't freeze nil even if 1.8 will not be aware of
	  the issue. [ruby-dev:32677]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f77e42a
Urabe, Shyouhei merge revision(s) 14858:
	* io.c (fptr_finalize): clear errno first.  [ruby-talk:284492]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0942811
Urabe, Shyouhei merge revision(s) 14883:
	* time.c (time_arg): use converted object.  [ruby-core:14759]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fe4c599
Urabe, Shyouhei merge revision(s) 15005:
	* eval.c (rb_define_alloc_func, rb_undef_alloc_func): should
	  define/undef on a signleton class.  [ruby-core:09959]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e55618f
Jun 09, 2008
Urabe, Shyouhei merge revision(s) 15054:
	* eval.c (eval): check if backtrace is empty.  [ruby-core:15040]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17049 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
366611a
Jun 11, 2008
Urabe, Shyouhei merge revision(s) 15123:
	* configure.in: Remove wrong assumptions about Cygwin.  a patch from
	  Corinna Vinschen in [ruby-Bugs-17018].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ab52f18
Urabe, Shyouhei merge revision(s) 15216:
	* lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s instead
	 object_id with printf.  [ruby-dev:33347]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
eda452e
Jun 13, 2008
Urabe, Shyouhei merge revision(s) 15287:
	* io.c (rb_open_file): should check NUL in path.
	  <http://www.rubyist.net/~matz/20080125.html#c01>.
	* io.c (rb_io_s_popen): ditto.
	* io.c (rb_io_reopen): ditto.
	* io.c (next_argv): ditto.
	* io.c (rb_io_s_foreach): ditto.
	* io.c (rb_io_s_readlines): ditto.
	* io.c (rb_io_s_read): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7dce7a4
Urabe, Shyouhei merge revision(s) 15369:
	* lib/benchmark.rb (Benchmark::realtime): make Benchmark#realtime
	  a bit faster.  a patch from Alexander Dymo <dymo@ukrpost.ua> in
	  [ruby-core:15337].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d68010a
Urabe, Shyouhei merge revision(s) 15408:
	* lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other than
	  SystemExit and SignalException.  [ruby-core:15359]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
679ae60
Urabe, Shyouhei merge revision(s) 15415:
	* ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for more
	  precision.  [ruby-talk:290296]
	* ext/bigdecimal/bigdecimal.c (BASE_FIG): made constant.
	* ext/bigdecimal/extconf.rb: ditto.  [ruby-dev:33658]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
5ecf4d8
Urabe, Shyouhei merge revision(s) 15425:
	* lib/benchmark.rb (Job::Benchmark#item): fix typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
465eec7
Urabe, Shyouhei merge revision(s) 15429, 15471:
	* gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
	  Submitted by Sylvain Joyeux [ruby-core:12099].
	* ext/dl/ptr.c: do not use LONG2NUM() inside dlptr_free().
	  Slightly modified fix bassed on a patch by Sylvain Joyeux
	  [ruby-core:12099] [ ruby-bugs-11859 ] [ ruby-bugs-11882 ]
	  [ ruby-patches-13151 ].
	* ext/dl/ptr.c (dlmem_each_i): typo fixed.  a patch from IKOMA
	  Yoshiki <ikoma@mb.i-chubu.ne.jp> in [ruby-dev:33776].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1454c98
Jun 14, 2008
Urabe, Shyouhei merge revision(s) 15464:
	* lib/timeout.rb (Timeout::timeout): made sensitive to location on the
	  stack.  [ruby-core:15458]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c6c5a44
Jun 15, 2008
Urabe, Shyouhei merge revision(s) 15476:
	* configure.in (sigsetmask): check when signal semantics is not POSIX.
	* signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is
	  available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b862aa9
Urabe, Shyouhei merge revision(s) 15477:
	* configure.in (ftruncate): check if available.
	* file.c (rb_file_truncate): check if ftruncate instead of truncate.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
356a958
Urabe, Shyouhei merge revision(s) 15482:
	* ext/iconv/iconv.c (iconv_convert): check upper bound.  a patch from
	  Daniel Luz at [ruby-Bugs-17910].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
4cff5e6
Urabe, Shyouhei merge revision(s) 15531:
	* ext/pty/lib/expect.rb (IO#expect): check if peer is closed.
	  [ruby-Bugs-17940]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
823be2d
Urabe, Shyouhei merge revision(s) 15541,15545,15558:
	* parse.y (yycompile): clear ruby_eval_tree_begin too before parse.
	* parse.y (yycompile): clear ruby_eval_tree_begin if parse failed.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
9de707a
Urabe, Shyouhei merge revision(s) 15546:
	* ext/readline/readline.c (readline_event): prevent polling.  based on
	  a patch from error errorsson in [ruby-Bugs-17675].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8cd2b69
Urabe, Shyouhei merge revision(s) 15548:
	* gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed.  [ruby-dev:33857]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
4d7f100
Urabe, Shyouhei merge revision(s) 15645:15647:
	* bignum.c (big2str_find_n1): check integer overflow.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
11b262e
Urabe, Shyouhei merge revision(s) 15575:
	* bignum.c (BIGZEROP): fix for longer Bignum zeros.  [ruby-Bugs-17454]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
870df46
Urabe, Shyouhei merge revision(s) 15749:
	* numeric.c (fix_coerce): try conversion before type check.
	  [ruby-core:15838]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e3f7b36
Urabe, Shyouhei merge revision(s) 15790:
	* misc/ruby-mode.el (ruby-mode): should use `run-mode-hooks' instead
	  of calling `run-hooks' directly to run the mode hook.  patch from
	  Chiyuan Zhang <pluskid AT gmail.com> in [ruby-core:15915]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
89fff52
Urabe, Shyouhei merge revision(s) 15823:
	* lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin.
	  [ruby-dev:29945], [ruby-dev:34095]
	* lib/win32/registry.rb (Win32::Registry.expand_environ): try upcased
	  name too for cygwin.  [ruby-dev:29945]
	* lib/win32/resolv.rb (Win32::Resolv.get_hosts_path): use expand_path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ba02b2d
Urabe, Shyouhei merge revision(s) 15832:
	* parse.y (yycompile): Always prepare a new array for each file's
	  SCRIPT_LINES__ storage, instead of appending source lines every
	  time a file is re-loaded; submitted by Rocky Bernstein in
	  #18517.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c1863af
Urabe, Shyouhei merge revision(s) 15856:
	* class.c (clone_method): should copy cref as well.
	  [ruby-core:15833]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ee2dcc4
Urabe, Shyouhei merge revision(s) 15869:
	* lib/resolv.rb (Resolv::Config.default_config_hash): requires
	  win32/resolv to use Win32::Resolv.  [ruby-dev:34138]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1a019c0
Urabe, Shyouhei merge revision(s) 15900:
	* lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and
	  @n_bytes as well.  [ruby-core:16144]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f29c158
Urabe, Shyouhei merge revision(s) 15924:
	* re.c (rb_reg_quote): should always copy the quoting string.
	  [ruby-core:16235]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d9630cc
Urabe, Shyouhei merge revision(s) 15965:
	* marshal.c (w_object): add volatile to avoid potential GC bug.  a
	  patch from Tomoyuki Chikanaga <chikanag at nippon-control-system.co.jp>
	  in [ruby-dev:34311].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
3dd98cb
Urabe, Shyouhei merge revision(s) 16074:
	* ext/syck/rubyext.c: Node#value defined twice.
	* lib/yaml/: several method redefinitions causing warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
6b00ba5
Urabe, Shyouhei merge revision(s) 16082:
	* lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit;
	  merged from 1.9.
	* lib/yaml.rb (quick_emit): use combination of object_id and hash to
	  identify repeated object references, since GC will reuse memory of
	  objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698];
	  merged from 1.9.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8f136d8
Urabe, Shyouhei merge revision(s) 16114:
	* time.c (rb_strftime): check errno to detect strftime(3)'s error.
	  this is workaround for recent version of MSVCRT.
	  [ruby-dev:34456]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1efa5d3
Urabe, Shyouhei merge revision(s) 16143:
	* regex.c (re_search): string might be NULL.  [ruby-core:16478]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e4cac77
Urabe, Shyouhei merge revision(s) 16144:
	* sprintf.c (rb_f_sprintf): should protect temporary string from
	  GC.   [ruby-dev:34480]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
91b4473
Urabe, Shyouhei merge revision(s) 16177:
	* dln.c (dln_find_1): prior files with extensions to files sans
	  extensions.  [ruby-core:16517]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a7e925d
Urabe, Shyouhei merge revision(s) 16239:
	* re.c (rb_reg_search): use local variable.  a patch from wanabe
	  <s.wanabe AT gmail.com> in [ruby-dev:34537].  [ruby-dev:34492]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
9484ce5
Urabe, Shyouhei merge revision(s) 16242:
	Merged 16241 from trunk.
	* lib/net/telnet.rb:  Fixing a bug where line endings would not be properly
	  escaped when the two character ending was broken up into separate TCP
	  packets.  Issue reported and patched by Brian Candler.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
742cc3c
Urabe, Shyouhei merge revision(s) 16305:
	* ext/zlib/zlib.c (gzreader_gets): may cause infinite loop.
	  a patch from Kouya <kouyataifu4 at gmail.com> in
	  [ruby-reference-manual:762].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f462307
Urabe, Shyouhei merge revision(s) 16307:
	* struct.c (rb_struct_s_def): to_str should be called only once.
	  [ruby-core:16647]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
79a77c8
Urabe, Shyouhei merge revision(s) 16342:
	* util.c (ruby_strtod): backported from 1.9.  a patch from Satoshi
	  Nakagawa <psychs at limechat.net> in [ruby-dev:34625]. 
	  fixed: [ruby-dev:34623]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8bc157c
Urabe, Shyouhei merge revision(s) 16369:
	* lib/delegate.rb (SimpleDelegator::dup): removed needless argument.
	  [ruby-list:44910]
	* lib/delegate.rb (clone, dup): keep relationship with the target
	  object.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d6bc37f
Urabe, Shyouhei merge revision(s) 16379:
	* win32/win32.c (rb_w32_select): backport from trunk.
	  [ruby-talk:300743]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
331cee7
Urabe, Shyouhei merge revision(s) 16385:
	* eval.c (is_defined): add NODE_OP_ASGN_{OR,AND}.  "defined?(a||=1)"
	  should not operate assignment.  [ruby-dev:34645]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
4c40952
Urabe, Shyouhei merge revision(s) 16400:
	* string.c (rb_str_cat): fixed buffer overrun reported by
	  Christopher Thompson <cthompson at nexopia.com> in [ruby-core:16746]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dd64b60
Urabe, Shyouhei merge revision(s) 16420,16454:
	* file.c (file_expand_path): support for alternative data stream
	  and ignored trailing garbages of NTFS.
	* file.c (rb_file_s_basename): ditto.
	* file.c (rb_file_s_extname): ditto.
	* lib/webrick/httpservlet/filehandler.rb: should normalize path
	  name in path_info to prevent script disclosure vulnerability on
	  DOSISH filesystems. (fix: CVE-2008-1891)
	  Note: NTFS/FAT filesystem should not be published by the platforms
	  other than Windows. Pathname interpretation (including short
	  filename) is less than perfect.
	* lib/webrick/httpservlet/abstract.rb
	  (WEBrick::HTTPServlet::AbstracServlet#redirect_to_directory_uri):
	  should escape the value of Location: header.
	* lib/webrick/httpservlet/cgi_runner.rb: accept interpreter
	  command line arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1b5f0ee
Urabe, Shyouhei merge revision(s) 16471:
	* process.c (rb_f_system): set last_status when status == -1 because
	  there is no path to set it on win32. this patch is derived from
	  [ruby-core:16787], submitted by Luis Lavena <luislavena at gmail.com>


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
89602ad
Urabe, Shyouhei merge revision(s) 16473:
	* sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
282a3cf
Urabe, Shyouhei merge revision(s) 16534:
	* parse.y (top_local_setup): fixed memory leak bug based on a
	  patch from Roger Pack <rogerpack2005 at gmail.com> in
	  [ruby-core:16610].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8c9c926
Urabe, Shyouhei merge revision(s) 16564:
	* marshal.c (reentrant_check): check reentrance via callcc.
	  [ruby-dev:34802]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d834f1b
Urabe, Shyouhei merge revision(s) 16569:
	* marshal.c (marshal_load): should initialize arg.data used for
	  reentrant check.  [ruby-dev:34837]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
9a1effa
Urabe, Shyouhei merge revision(s) 16570:
	* object.c (rb_cstr_to_dbl): should clear errno before calling
	  strtod(3).  [ruby-dev:34834]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
340f07e
Urabe, Shyouhei merge revision(s) 16596:
	* marshal.c (r_object0, Init_marshal): Fix the garbled s_call
	  definition; fixes [ruby-dev:34843].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e9f9007
Urabe, Shyouhei merge revision(s) 16618:
	* file.c (BUFCHECK): wrong condition. [ruby-core:16921]
	* file.c (file_expand_buf): shouldn't use buflen for length of string.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c519f1b
Urabe, Shyouhei merge revision(s) 16641:
	* numeric.c (flo_divmod): Revert the behavior change; do not
	  suppress an exception when div is NaN or Inf. [ruby-dev:34857]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
4dfafee
Urabe, Shyouhei merge revision(s) 16654:
	* marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
	  private methods too.  [ruby-dev:34671]
	* object.c (convert_type): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
16e5247
Urabe, Shyouhei merge revision(s) 16677:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
cec17bd
Jun 16, 2008
Urabe, Shyouhei merge revision(s) 16514:
	* proc.c (proc_dup): should copy safe_level from src proc
	  properly.  a patch from Keita Yamaguchi
	  <keita.yamaguchi at gmail.com>


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a2ac560
Jun 17, 2008
Urabe, Shyouhei merge revision(s) 12205:
	* configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted,
	  it is done by libpathflag in mkmf.rb.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a938a27
Jun 18, 2008
Urabe, Shyouhei * file.c: fixes to compile on mswin32. Patch from U. Nakamura
	  <usa at garbagecollect.jp>. [ruby-dev:35127]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7af00f1
Urabe, Shyouhei merge revision(s) 17396:
	* marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
	  public methods only.  [ruby-core:17283]
	* object.c (convert_type): ditto.
	* lib/singleton.rb (Singleton#_dump): conversion method should be
	  public.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
00fd8fe
Jun 19, 2008
Nobuyoshi Nakada * array.c (rb_ary_equal, rb_ary_eql, rb_ary_hash, rb_ary_cmp):
  Make Array#eql?, #hash, #== and #<=> use rb_exec_recursive() and
  handle recursive data properly.  [ruby-dev:35181]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f5dd2cf
Nobuyoshi Nakada * array.c (rb_ary_equal, rb_ary_eql, rb_ary_hash, rb_ary_cmp):
  Make Array#eql?, #hash, #== and #<=> use rb_protect_inspect() and
  handle recursive data properly.  [ruby-dev:35181]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ef7fdbd
Urabe, Shyouhei * array.c (ary_new, rb_ary_initialize, rb_ary_store,
  rb_ary_aplice, rb_ary_times): integer overflows should be
  checked. based on patches from Drew Yao <ayao at apple.com>
  fixed CVE-2008-2726

* string.c (rb_str_buf_append): fixed unsafe use of alloca,
  which led memory corruption. based on a patch from Drew Yao
  <ayao at apple.com> fixed CVE-2008-2726

* sprintf.c (rb_str_format): backported from trunk.

* intern.h: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
3832855
Jun 20, 2008
Urabe, Shyouhei merge revision(s) 17470:17472:
	* array.c (rb_ary_store, rb_ary_splice): not depend on unspecified
	  behavior at integer overflow.
	* string.c (str_buf_cat): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d84dde3
Urabe, Shyouhei merge revision(s) 17483:
	* string.c (rb_str_buf_append): should infect.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
f61afaa
Jun 21, 2008
Urabe, Shyouhei merge revision(s) 16752:
	* lib/delegate.rb (DelegateClass, Delegator#respond_to?):
	  respond_to? should now take optional second argument; submitted
	  by Jeremy Kemper <jeremy at bitsweat.net> in [ruby-core:17045].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8cc81b3
Jun 24, 2008
Urabe, Shyouhei merge revision(s) 16763:
	* lib/erb.rb (ERB::Compiler::TrimScanner#explicit_trim_line): Fix 
	  without strscan problems. [ruby_core:17028].
	* test/erb/test_erb.rb (TestERBCoreWOStrScan): Add test class for 
	  without strscan.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
9d1d281
Jun 27, 2008
Urabe, Shyouhei merge revision(s) 16809,16824:
	* ext/iconv/iconv.c (iconv_iconv): fix for length argument and now
	  allows range.  [ruby-core:17092]
	* ext/iconv/iconv.c (iconv_iconv): fixed backport miss.
	  [ruby-core:17115]
	* ext/iconv/iconv.c (iconv_iconv): fixed backport miss.
	  [ruby-core:17115]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
035457f
Urabe, Shyouhei merge revision(s) 16855:
	* win32/win32.h: include ws2tcpip.h. fixed [ruby-Bugs-20528]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
0a34a0a
Urabe, Shyouhei merge revision(s) 16870:
	* io.c (rb_open_file, rb_io_s_sysopen): fmode should be unsigned int.
	  fixed [ruby-dev:34979]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7c95864
Urabe, Shyouhei merge revision(s) 17025:
	* ext/zlib/zlib.c (rb_deflate_initialize, Init_zlib): Fix up
	  initialize_copy; [ruby-list:45016], [ruby-list:45018].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dcf3bc3
Jun 28, 2008
Urabe, Shyouhei merge revision(s) 16536:
	* eval.c (rb_copy_node_scope), node.h: Rename from copy_node_scope
	  and export.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
fbf2219
Urabe, Shyouhei merge revision(s) 17625:
	* class.c (clone_method): use rb_copy_node_scope.
	  fixed [ruby-list:45102]
	  fixed [ruby-core:17393]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
708122f
Jun 29, 2008
Urabe, Shyouhei merge revision(s) 16507:
	* eval.c (search_method, remove_method, error_print, rb_alias)
	  (rb_eval, rb_rescue2, search_required, Init_eval, rb_thread_create),
	  gc.c (rb_source_filename, Init_stack), io.c (rb_io_getline),
	  parse.y (rb_id2name, rb_parser_free): suppress warnings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
72a943a
Urabe, Shyouhei merge revision(s) 17046:
	* lib/set.rb (Set#delete_if): Call to_a.
	  (SortedSet#delete_if, TC_SortedSet#test_sortedset): Use super to
	  yield elements in sorted order; [ruby-core:17144] by Arthur
	  Schreiber.
	  (SortedSet#each, SortedSet#each, TC_Set#test_each)
	  (TC_SortedSet#test_sortedset): Return self; [ruby-dev:35002] by
	  Arthur Schreiber.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
6daec36
Urabe, Shyouhei merge revision(s) 17074:
	* util.c (ruby_strtod): ruby_strtod don't allow a trailing
	  decimal point like "7.". [ruby-dev:34835] [ruby-dev:35009]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
858b825
Urabe, Shyouhei merge revision(s) 17108:
	* ext/openssl/ossl.h: include winsock.h if USE_WINSOCK2 is not defined.
	  a patch from arton <artonx at yahoo.co.jp> in [ruby-dev:35078]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
99f7dae
Urabe, Shyouhei merge revision(s) 17352:
	* ext/stringio/stringio.c (strio_readline, strio_each)
	  (strio_readlines): set lastline.  [ruby-core:17257]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
04c232c
Urabe, Shyouhei merge revision(s) 17366:
	* ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and
	  IO#readlines do not affect $_.  [ruby-core:17277]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
df1b7c7
Urabe, Shyouhei merge revision(s) 17497:
	* lib/rdoc/parsers/parse_rb.rb (RDoc#collect_first_comment): skip
	  magic comment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
5e686f8
Urabe, Shyouhei merge revision(s) 17547:
	* eval.c (PUSH_FRAME, PUSH_CLASS): Add volatile to avoid a
	  possible optimization bug on OS X/PPC.  This at least makes
	  build with gcc -O1 and `make test' pass.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c337813
Urabe, Shyouhei merge revision(s) 17561:
	* ext/win32ole/win32ole.c(ole_invoke): fix memory leak.
	  [ruby-bugs-20792]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
007bfbc
Urabe, Shyouhei merge revision(s) 17570:
	* array.c (rb_ary_fill): not depend on unspecified behavior at integer
	  overflow.  reported by Vincenzo Iozzo <snagg AT openssl.it>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
526a28d
Urabe, Shyouhei merge revision(s) 17578:
	* variable.c (rb_f_trace_var): should not be allowed at safe level 4.  
	  a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7e376bd
Urabe, Shyouhei merge revision(s) 17581:
	* eval.c (rb_call0): wrong condition to check insecure method.
	  a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c382246
Urabe, Shyouhei merge revision(s) 17584:
	* process.c: include sys/resource.h if HAVE_SYS_RESOURCE_H is defined.
	  pointed by TOYOFUKU Chikanobu.  [ruby-dev:35258]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
438d40d
Urabe, Shyouhei merge revision(s) 17586,17612:
	* ruby.c (set_arg0, ruby_prog_init): freeze $0.  a patch from Keita
	  Yamaguchi <keita.yamaguchi at gmail.com>.
	* test/inlinetest.rb (InlineTest.in_progname): workaround for frozen
	  $0.  [ruby-dev:35261]
	* lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
08c47c5
Urabe, Shyouhei merge revision(s) 17617:
	* time.c (time_timeval): fix rounding negative float.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a4884ed
Urabe, Shyouhei * array.c (rb_ary_fill): (compatibility) do not raise
	  ArgumentError on negative length.  This behaviour shall change
  	  in a future release.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
01d105e
Urabe, Shyouhei merge revision(s) 17636:
	* eval.c (rb_obj_respond_to): use RTEST to test the result of
	  respond_to? method.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
904a268
Jun 30, 2008
Urabe, Shyouhei merge revision(s) 17530:
	* string.c (str_buf_cat): check for self concatenation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
47dfdac
Jul 01, 2008
Urabe, Shyouhei merge revision(s) 17756:
	* array.c (rb_ary_fill): check if beg is too big.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1b5e93c
Jul 02, 2008
Urabe, Shyouhei merge revision(s) 16851:
	* ext/iconv/iconv.c (iconv_iconv): fixed backport miss.
	  [ruby-core:17115]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7c26006
Urabe, Shyouhei merge revision(s) 17642:
	* ext/win32ole/win32ole.c (date2time_str): fix the overflow in
	  some situation. [ruby-bugs-20793]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b3afdd1
Urabe, Shyouhei merge revision(s) 17643:
	* lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, and
	  should be clean.  based on a patch from arton <artonx AT
	  yahoo.co.jp> at [ruby-dev:35269]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c22420d
Urabe, Shyouhei merge revision(s) 17644:
	* math.c (domain_check): fix preprocess condition.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d6163ea
Urabe, Shyouhei merge revision(s) 17727:
	* ext/syslog/syslog.c (syslog_write): syslog operations should be
	  protected from $SAFE level 4.  a patch from Keita Yamaguchi
	  <keita.yamaguchi at gmail.com>.
	* ext/syslog/syslog.c (mSyslog_close): ditto.
	* ext/syslog/syslog.c (mSyslog_set_mask): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a25e245
Urabe, Shyouhei merge revision(s) 17749:17752:
	* numeric.c (num_coerce): call rb_Float(x) first.  don't depend on
	  evaluation order of function arguments.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
6f9c8ea
Urabe, Shyouhei merge revision(s) 17753:
	* lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside
	  double quotes are allowed.  [ruby-list:45140]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c03a5d2
Jul 03, 2008
Urabe, Shyouhei * win32/win32.c: revert r17290, requested by NAKAMURA Usaku
	  <usa at ruby-lang.org>



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
214a3aa
Jul 05, 2008
* re.c (rb_reg_search): need to free allocated buffer in re_register.…
… [ruby-core:17518]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
37a483a
2008-07-06
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e6d0669
Jul 07, 2008
Urabe, Shyouhei patchlevel 266
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b777233
Urabe, Shyouhei merge revision(s) 17827,17846:17848:
	* gc.c: add rb_during_gc(). based on a patch from arton <artonx AT
	  yahoo.co.jp> at [ruby-dev:35313].   
	* intern.h: ditto.
	* ext/win32ole/win32ole.c: avoid creating Ruby object during
	  GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313]
	* ext/win32ole/tests: add test_win32ole_event.rb, remove
	  testOLEEVENT.rb
	* ext/win32ole/tests/testWIN32OLE.rb(test_convert_bignum):
	  fix test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7d110cc
Urabe, Shyouhei merge revision(s) 17832:
	* eval.c (rb_longjmp): duplicate the thrown exception to set backtrace
	  if it was frozen.  clear all raised flags.
	* eval.c (stack_check): leave clearing flag to rb_longjmp.
	* eval.c (rb_thread_set_raised, rb_thread_reset_raised): use generic
	  flags.
	* eval.c (Init_Proc), gc.c (Init_GC): freeze preallocated special exceptions.
	* gc.c (rb_memerror): use thread raised flag instead of static flag,
	  and raise nomem_error without backtrace if failed to make backtrace.
	  [ruby-dev:34724]
	* gc.c (ruby_xmalloc): increase malloc_increase only if malloc
	  succeeds.  failed malloc size can be huge.  it may increase
	  malloc_limit too big which cause less GC and memory full.
	  (ruby_xrealloc): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8cfa177
Urabe, Shyouhei merge revision(s) 17839:
	* lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
	  'localhost.localdomain'.  [ruby-dev:35333]
	* lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
257f08a
Urabe, Shyouhei merge revision(s) 17869:
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
7696697
Jul 10, 2008
Urabe, Shyouhei merge revision(s) 17842:
	* include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead of
	  FIXNUM_MAX to make it possible to convert to double accurately.
	  It assumes FLT_RADIX is 2.
	  fix RubyForge bug #14102.
	  backported from 1.9.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
d83a42a
Urabe, Shyouhei merge revision(s) 17849:
	* ruby.c: Mac OS X needs origargc times of '\0' in
	  origargv. [ruby-dev:35308]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e7023df
Urabe, Shyouhei merge revision(s) 17868:
	* lib/net/ftp.rb (Net::FTP#sendport): use divmod.  [ruby-core:17557]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@17998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
46776da
Urabe, Shyouhei merge revision(s) 17916:
	* file.c (rb_file_s_extname): fix for file name with spaces.
	  [ruby-talk:307404]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
e5a1622
Jul 12, 2008
Urabe, Shyouhei merge revision(s) 17841,17845,17858:
	* configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
	  on IA64 is broken.  erfc(10000.0) aborts.
	  use missing/erf.c instead.
	  http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
40e3baf
Urabe, Shyouhei merge revision(s) 17940:
	* lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
	  IPAddr#to_range.  a patch from okkez <okkez000 AT gmail.com> in
	  [ruby-dev:35091].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b3470a1
Jul 16, 2008
Urabe, Shyouhei merge revision(s) 18031:
	* ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo.  [ruby-core:17713]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
dbfbe18
Jul 17, 2008
Urabe, Shyouhei merge revision(s) 18058:
	* lib/optparse.rb (OptionParser#environment): requires shellwords.
	  [ruby-dev:35466]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
98d848a
Urabe, Shyouhei merge revision(s) 17719:
	* string.c (rb_str_format_m): make tmp volatile to avoid possible GC
	  problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a571edd
Urabe, Shyouhei * lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821
	  violation. [ruby-dev:35487]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
91db031
Aug 04, 2008
Urabe, Shyouhei merge revision(s) 17833:17837:
	* gc.c (Init_GC): fix syntax error.
	* error.c (rb_exc_new3): keeps the given string itself.
	* eval.c (Init_Proc), gc.c (Init_GC): freeze messages of preallocated
	  special exceptions also.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
3056186
Urabe, Shyouhei merge revision(s) 18100,18129:
	* numeric.c (check_uint, rb_num2uint, rb_fix2uint): strict check.
	  fixed [ruby-dev:33683]
	* numeric.c (check_uint, rb_num2uint, rb_fix2uint): fixed wrong check
	  about 64bit positive value.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
519f06e
Urabe, Shyouhei merge revision(s) 18181:
	* ext/openssl/openssl_missing.h (d2i_of_void): define for older
	  versions.  [ruby-dev:35637]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
c9463ec
Urabe, Shyouhei merge revision(s) 18211:
	* bignum.c (rb_big2str0, bigsqr): made interruptible.  [ruby-Bugs-20622]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
8f66785
Urabe, Shyouhei merge revision(s) 18212:
	* regex.c (xmalloc, xrealloc, xfree): not to use ruby managed memory.
	* regex.c (DOUBLE_STACK, re_compile_fastmap0, re_adjust_startpos),
	  (re_search, re_match_exec): check if failed to allocate memory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
eeaf7dd
Urabe, Shyouhei merge revision(s) 18220:
	* lib/webrick/httputils.rb (WEBrick::HTTPUtils#split_header_value):
	  reduce backtrack.  based on a fix by Christian Neukirchen
	  <chneukirchen AT gmail.com>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
39a7b15
Aug 08, 2008
akr * lib/resolv.rb: randomize source port and transaction id.
  CVE-2008-1447.

* lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is
  "".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
45738f1
* 2008-08-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b9b1038
Urabe, Shyouhei patchlevel 286
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
6306210
Urabe, Shyouhei add tag v1_8_6_286
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_8_6_286@18429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
a3e9088