Commit graph

24190 commits

Author SHA1 Message Date
ayumin
b460f8849b merge revision(s) 34253:
* test/ruby/test_io.rb (test_autoclose_true_closed_by_finalizer,
	  test_autoclose_true_closed_by_finalizer): skip if IO objects are
	  not recycled yet. [ruby-dev:45098] [Bug #5850]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 05:02:32 +00:00
ayumin
cb94d9df62 merge revision(s) 34250:
* gc.c (run_finalizer): clear rb_thread_t::errinfo when ignore
	  an exception under rb_protect(). [ruby-dev:45113]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34453 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-07 04:59:18 +00:00
kosaki
04918f8156 merge revision(s) 33567,33573:
* ruby.c (fill_standard_fds): new function to open closed standard
	  file descriptors.
	  (ruby_sysinit): call fill_standard_fds.

	* ruby.c (fill_standard_fds): use fstat() instead of fcntl(F_GETFD)
	  for MinGW.  reported by Luis Lavena.  [ruby-core:40526] [Bug #5516]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 20:35:30 +00:00
kosaki
ea0ef6af83 merge revision(s) r33826:
* io.c (rb_io_fsync,rb_io_fdatasync): release GVL during fsync().
	  fsync() and fdatasync() may take a long time on slow disks and/or
	  if there is much dirty data.
	  Patch by Eric Wong. [Feature #5665] [ruby-core:41247]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 20:19:29 +00:00
kosaki
4b295bb7ca merge revision(s) r34399:
* vm_eval.c (vm_call0): should pass block to enumerators.  patched
	  by Kazuki Tsujimoto.  [ruby-dev:44961][Bug #5731]

	* vm_eval.c (method_missing), vm_insnhelper.c (vm_call_method):
	  ditto.  patched by satoshi shiba.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 20:03:14 +00:00
naruse
15090079a2 merge revision(s) 33886: [Backport #5682]
* common.mk (INSTRUBY_ARGS): added --mantype to apply mdoc2man.rb
	  to man pages.  Fixes #5598. 
	  (do-install-nodoc, do-install-local, do-install-man,
	  dont-install-nodoc, dont-install-local, dont-install-man):
	  No longer needs --mantype.
	
	  Reported by Rainer Orth <ro AT cebitec.uni-bielefeld.de>,
	  patch by George Koehler <xkernigh AT netscape.net>.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:53:11 +00:00
naruse
f63222ea19 merge revision(s) 34232:
------------------------------------------------------------------------
r34232 | naruse | 2012-01-08 08:04:20 +0900 (Sun, 08 Jan 2012) | 2 lines

Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work
sendmsg with pktinfo for link-local ipv6 addresses
------------------------------------------------------------------------


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:32:16 +00:00
naruse
5879bd9c6a merge revision(s) 34335,34337:
* ext/date/date_parse.c: [ruby-core:42173].

	* ext/date/date_strptime.c: moved detector of leftover.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:29:54 +00:00
naruse
234753aed4 merge revision(s) 33691,33692:
* io.c (rb_update_max_fd): fstat(2) can fail with other than
	  EBADF.  [ruby-dev:44837] [Backport #4339].  Cf.
	  http://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html
	  EBADF.  [ruby-dev:44837] [Bug #5593].  Cf.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:26:47 +00:00
naruse
d95723ea9d merge revision(s) 33784:
* test/unit/assertions.rb (MINI_DIR): quick dirty hack to get rid of
	  warnings when using assert/assert_respond_to.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:21:54 +00:00
naruse
7e82751c42 merge revision(s) 34232:
------------------------------------------------------------------------
r34232 | naruse | 2012-01-08 08:04:20 +0900 (Sun, 08 Jan 2012) | 2 lines

Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work
sendmsg with pktinfo for link-local ipv6 addresses
------------------------------------------------------------------------


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:12:31 +00:00
naruse
739b5e1e59 merge revision(s) 33956,33960,33961,33962:
------------------------------------------------------------------------
r33956 | naruse | 2011-12-06 06:47:16 +0900 (Tue, 06 Dec 2011) | 1 line

Comment out tests which fails with GDBM-DBM compat mode.
------------------------------------------------------------------------


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 12:11:55 +00:00
naruse
0e305c5a69 merge revision(s) 33603: [Backport #5533] [Backport #5911]
* file.c (file_expand_path): reset coderange after expanding path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 11:38:51 +00:00
naruse
9104e80b37 merge revision(s) 34335,34337: [Backport #5907]
* ext/date/date_parse.c: [ruby-core:42173].

	* ext/date/date_strptime.c: moved detector of leftover.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 11:35:19 +00:00
naruse
401168aa13 merge revision(s) 34072,34075,34082:
* ext/date/date_core.c:  [ruby-dev:45008].

	* ext/date/date_core.c (wholenum): fix the type of the return value.

	* ext/date/date_core.c: uses to_integer instead.

	* test/date/test_switch_hitter.rb: added a test.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 11:31:46 +00:00
usa
ad837e5a12 merge rivision(s) 33685:
* win32/win32.c (unixtime_to_filetime): should check the return value
  of localtime().  reported by snowjail at gmail.com.
  [ruby-dev:44838] [Bug #5596]

[Backport #5596]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 07:39:40 +00:00
usa
25f531a924 merge revision(s) 33691,33692
* io.c (rb_update_max_fd): fstat(2) can fail with other than
  EBADF.  [ruby-dev:44837] [Bug #5593].  Cf.
  http://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html

[Backport #5593]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 07:37:33 +00:00
usa
a3fcbc9712 merge revision(s) 33667:
* io.c (io_fwrite): call rb_w32_write_console() only if FMODE_TTY is
  set.  this is the one of the reason of IO writing slowness of Windows
  in 1.9.3 or later.

[Backport #5592]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 07:32:09 +00:00
usa
3f8c4ba70f merge revision(s) 33603:
* file.c (file_expand_path): reset coderange after expanding path.

[Backport #5601] [Backport #5629]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06 07:25:37 +00:00
naruse
63da304fb7 merge revision(s) 34306:
* ext/json/parser/parser.rl (json_string_unescape): workaround fix
	  for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888]
	  http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-05 15:06:50 +00:00
naruse
e892c81cb1 merge revision(s) 34040,34051,34063,34389,34402,34403:
------------------------------------------------------------------------
r34040 | naruse | 2011-12-14 14:42:34 +0900 (Wed, 14 Dec 2011) | 1 line

Use pipe instead of $stdin.read.
------------------------------------------------------------------------

	* test/ruby/envutil.rb (invoke_ruby): remove :timeout option before
	  pass it to Kernel#spawn.

	* test/ruby/test_thread.rb
	  (TestThreadGroup#test_thread_timer_and_interrupt): skip exit status
	  assertion because we cannot get signal status on Windows.

	* win32/win32.c (CreateChild): create process group to receive the
	  signal by GenerateConsoleCtrlEvent().

	* win32/win32.c (kill): use CTRL_BREAK_EVENT instead of CTRL_C_EVENT
	  if a process group is specified. CTRL_C_EVENT signal cannot be
	  generated for process groups for the specification.
	  [ruby-dev:45149] [Bug #5812]

	* test/ruby/envutil.rb (EnvUtil.invoke_ruby): yield also child pid
	  in block form.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-03 07:17:03 +00:00
naruse
5dc6d20cc3 merge revision(s) r34038,34099:
* thread_pthread.c (ubf_select): call rb_thread_wakeup_timer_thread()
	  only when it is not timer_thread. [Bug #5757] [ruby-dev:44985]
	  patched by Tomoyuki Chikanaga.

	* thread_pthread.c (ping_signal_thread_list): remove return value.

	* thread_pthread.c (check_signal_thread_list): add a new function to
	  check if signal thread list is empty.

	* thread_pthread.c (thread_timer): check signal thread list after
	  timer_thread_function(). main thread might be added into signal thread
	  list during timer_thread_function().


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-03 01:11:37 +00:00
nobu
aea7069f79 * doc/re.rdoc (Repetition): fix typo. reported by Ori Avtalion
and patched by Zachary Scott.  [Bug #5947]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-01 00:50:17 +00:00
svn
ea6101f8dd * 2012-02-01
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 19:10:20 +00:00
tenderlove
746e61e910 merging r34364 from trunk to ruby_1_9_3
--
* lib/uri/common.rb (URI.encode_www_form_component): initialize on
  requiring to support JRuby, which runs parallel multithreads.
  [ruby-core:42222] [Bug #5925]

* lib/uri/common.rb (URI.decode_www_form_component): initialize on

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-31 19:10:15 +00:00
svn
a16b7828f8 * 2012-01-28
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-27 20:53:45 +00:00
nobu
4201e2b3d0 * lib/irb/completion.rb (IRB::InputCompletor::CompletionProc):
ignore non-string name modules.  [ruby-core:42244][Bug #5938]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-27 20:53:37 +00:00
naruse
3c0ebab6f1 merge revision(s) r34350:
* encoding.c (rb_enc_compatible): fix segv on symbols.
	  [ruby-core:42204] [Bug #5921]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23 09:19:10 +00:00
svn
6c02761849 * 2012-01-20
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 08:27:30 +00:00
nobu
2f56b9abb8 * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name): enabled the test too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20 08:27:24 +00:00
nobu
db949b4f36 * configure.in (SPT_TYPE): enable as SPT_REUSEARGV on Darwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:18:46 +00:00
nobu
500e2e533c * missing/setproctitle.c (ruby_init_setproctitle): changed prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:13:50 +00:00
svn
1e4420aefe * 2012-01-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:10:04 +00:00
nobu
68832e1ca8 * confiugre.in (setproctitle): removed dupcated checks.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-17 08:10:00 +00:00
svn
47c0124ed9 * 2012-01-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-16 07:42:13 +00:00
nobu
1543a9f192 * lib/optparse.rb (Regexp): fix incorrect options when casting to
a Regexp, and suppress encoding option warnings.
  https://github.com/ruby/ruby/pull/82


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-16 07:42:01 +00:00
ayumin
abe4ff9225 merge revision(s) 33790:
* time.c (TIME_COPY_GMT): copy vtm.utc_offset and vtm.zone too.
	  patch by Tomoyuki Chikanaga.
	  [ruby-dev:44827] [Bug #5586]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-13 06:22:56 +00:00
kosaki
edfc3526a7 merge revision(s) 34278:
* cont.c (cont_restore_0): prevent optimizing out `sp'. sp is used for
	  reserving a memory space with ALLOCA_N for restoring machine stack
	  stored in cont->machine_stack, but clang optimized out it (and
	  maybe #5851 is also caused by this).
	  This affected TestContinuation#test_check_localvars.

	* cont.c (cont_restore_1): revert workaround introduced in r32201.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-12 19:07:09 +00:00
svn
6fe410d426 * 2012-01-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-12 16:46:19 +00:00
marcandre
160f31e50e merge revision(s) 34280:
* eval.c: Improve rdoc for Module.constants [issue #5887]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-12 16:46:15 +00:00
ayumin
f22910b68a merge revision(s) 34253:
* test/ruby/test_io.rb (test_autoclose_true_closed_by_finalizer,
	  test_autoclose_true_closed_by_finalizer): skip if IO objects are
	  not recycled yet. [ruby-dev:45098] [Bug #5850]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-11 16:42:25 +00:00
ayumin
095ebf1dfa merge revision(s) 34252:
* lib/tempfile.rb (Tempfile#_close): clear @tempfile and @data[1] even
	  when exception is raised at @tempfile.close. [ruby-dev:45113]

	* lib/tempfile.rb (Tempfile#unlink): fix a typo.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-11 16:41:54 +00:00
ayumin
33341205e7 merge revision(s) 34250:
* gc.c (run_finalizer): clear rb_thread_t::errinfo when ignore
	  an exception under rb_protect(). [ruby-dev:45113]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-11 16:41:21 +00:00
ayumin
3b22a82547 merge revision(s) 34129:
* test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't
	  accept the block argument.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-11 16:40:59 +00:00
svn
c511d463d8 * 2012-01-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-10 07:13:10 +00:00
nobu
1e835d1c74 * test/ruby/test_enumerator.rb (test_nested_iteration): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-10 07:13:04 +00:00
ayumin
6166e9cf28 merge revision(s) 34204:
* lib/rexml/parsers/baseparser.rb: use private instead of _xxx
	  method name. This is Ruby code not Python code.
	  refs #5696


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-07 13:47:25 +00:00
ayumin
68fff3881d merge revision(s) 34202:
* lib/rexml/parsers/baseparser.rb: rexml BaseParser uses
	  instance_eval unnecessarily on listener add.
	  patch from Charles Nutter. [Bug #5696] [ruby-core:41437]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-07 13:40:21 +00:00
ngoto
e87360009c sparc.c was missing in r34199
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-04 07:04:22 +00:00
svn
94443cf523 * 2012-01-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-04 04:54:01 +00:00