Commits on Oct 12, 2012
  1. @unak

    add tag v1_9_3_286

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/tags/v1_9_3_286@37165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  2. @unak

    merge revision(s) 37163:

    	* file.c (rb_get_path_check): path name must not contain NUL bytes.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  3. @unak

    merge revision(s) 37068:

    	* error.c (exc_to_s, name_err_to_s, name_err_mesg_to_str): do not
    	  taint messages.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  4. @unak

    merge revision(s) 33857,37157:

    	Run the test only if /dev/tty exists.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  5. @unak

    merge revision(s) 36847,36873: [Backport #7115]

    	* configure.in (LIBDIR_BASENAME): use configured libdir value to fix
    	  --enable-load-relative on systems where libdir is not default value,
    	  overridden in config.site files.  [ruby-core:47267] [Bug #6903]
    
    	* ruby.c (ruby_init_loadpath_safe): ditto.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  6. @unak

    merge revision(s) 33215:

    	* test/rexml/test_encoding.rb:
    	  Add require 'require 'rexml/document'
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37152 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  7. @unak

    merge revision(s) 35015:

    * numeric.c (flodivmod): must through the same pass if HAVE_FMOD or not.
      this is a bugfix of r35013.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  8. @unak

    * io.c (rb_cloexec_fcntl_dupfd): get rid of compile error on windows.

      reported by Donovan Lampa at [ruby-core:43152] [Backport #6127],
      based on a patch by Hiroshi Shirosaki at [ruby-core:47917].
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak committed Oct 12, 2012
  9. @nurse

    Remove wrong tests of r37144

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Oct 12, 2012
Commits on Oct 11, 2012
  1. @nurse

    merge revision(s) 33819,33839:

            * io.c (ioctl_narg_len): don't use _IOC_SIZE macro on Linux.
              On Linux some constants for ioctl(2) doesn't include the size of
              its return value and 16bit value; for example FIONREAD 0x541B.
              Moreover the manual, ioctl_list(2),  says "Note  that  the  size
              bits  are  very unreliable: in lots of cases they are wrong,
              either because of buggy macros using sizeof(sizeof(struct)),
              or because of legacy values."
              So we shouldn't use it.
    
            * io.c (ioctl_narg_len, linux_iocparm_len): reinstantiate linux
              specific narg length calculation.
    
            * test/ruby/test_io.rb (test_ioctl_linux2): add new test for old and
              unstructured ioctl.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Oct 11, 2012
  2. * 2012-10-11

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Oct 11, 2012
  3. @nurse

    merge revision(s) 33711,33713,33714,33715,33716,33717,33718,33719,337…

    …20,33721,33724,33727,33728,33752,33753: [Backport #6127]
    
            * io.c (ioctl_req_t): Type of req argument of ioctl() depend on platform.
              Moreover almost all linux ioctl can't be represented by 32bit integer
              (i.e. MSB is 1). We need wrap ioctl argument type.
            [Bug #5429] [ruby-dev:44589]
            * io.c (struct ioctl_arg): ditto.
            * io.c (rb_ioctl): ditto.
            * test/ruby/test_io.rb (test_ioctl_linux): add a testcase for ioctl
            * backporting patch is created by Donovan Lampa.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Oct 11, 2012
Commits on Sep 25, 2012
  1. @nurse

    merge revision(s) 36544: [Backport #7017]

    	* win32/mkexports.rb: should not export DllMain().
    	  reported by luis at [ruby-core:46743] [Bug #6790], solved by
    	  Heesob Park, and confirmed by nobu.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 25, 2012
Commits on Sep 24, 2012
  1. @nurse

    merge revision(s) 36522: [Backport #7016]

    	* include/ruby/win32.h (rb_w32_pow): add new function.
    	  We use powl() instead of broken pow() for x64-mingw32. This workaround
    	  fixes test failures related to floating point numeric.
    	  [ruby-core:46686] [Bug #6784]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 24, 2012
  2. @nurse

    merge revision(s) 36508: [Backport #7015]

    	* test/win32ole/test_win32ole_method.rb (is_ruby64?): Correct platform
    	  used to identify mingw-w64 (x64-mingw32). Patch by Hiroshi Shirosaki.
    	  [ruby-core:46651][Bug #6782]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 24, 2012
  3. @nurse

    merge revision(s) 36247: [Backport #7014]

    	* lib/test/unit/parallel.rb: workaround fix for rubygems.
    	  RubyGems can't find rake if the source directory is not equal to
    	  the directory which is running the test. [Bug #6604]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 24, 2012
Commits on Sep 21, 2012
  1. @nurse

    merge revision(s) 35485: [Backport #7013]

    	* ext/dl/cfunc.c (rb_dlcfunc_call): should convert a Bignum value to
    	  unsigned long long on Win64.
    	  [ruby-core:44636][Bug #6364] reported by raylinn@gmail.com (ray linn)
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 21, 2012
  2. @nurse

    merge revision(s) 33989:["7012"]

    	* include/ruby/win32.h: undef stat to silence mingw-w64 stat
    	  redefinition warnings (GCC 4.6.3).
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 21, 2012
  3. @nurse

    merge revision(s) 33830: [Backport #7011]

    	* configure.in: add -Wall always.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 21, 2012
Commits on Sep 20, 2012
  1. @kosaki

    * thread_pthread.c (native_cond_initialize): destroy condattr

      after using it. Patch by Stanislav Sedov. Thank you.
      [Bug #7041] [ruby-core:47619]
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@37002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    kosaki committed Sep 20, 2012
Commits on Sep 9, 2012
  1. @nurse

    merge revision(s) 35496:

    	* ext/zlib/extconf.rb: detect z_crc_t type which will be defined
    	  since zlib-1.2.7.
    
    	* ext/zlib/zlib.c (rb_zlib_crc_table): use z_crc_t if available.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Sep 9, 2012
  2. @kosaki

    merge revision(s) 35687:35691:

    	* ext/zlib/extconf.rb: Use an exception instaed of bare puts.
    
    	* ext/psych/extconf.rb: Use an exception instaed of bare abort.
    
    	* ext/fiddle/extconf.rb: Use an exception instaed of bare abort.
    
    	* ext/readline/extconf.rb: Use an exception instead of bare exit.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    kosaki committed Sep 9, 2012
  3. @kosaki

    merge revision(s) 35685

    * ext/extmk.rb: Show a message when extconf.rb raised an exception.
    * ext/openssl/extconf.rb: Use exception raising instead of message
      and/or abort. We want to display error message to console _and_
      logging into mkmf.log.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    kosaki committed Sep 9, 2012
  4. @kosaki

    merge revision(s) 36926:

    	* thread.c (rb_mutex_lock): stop multiple threads use
    	  pthread_cond_timedwait() concurrently. [Bug #6278] [ruby-core:44275]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    kosaki committed Sep 9, 2012
Commits on Aug 30, 2012
  1. * 2012-08-31

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Aug 30, 2012
  2. @nurse

    merge revision(s) 36852:

    	* lib/uri/ftp.rb (URI::FTP#initialize): raise InvalidURIError if "//"
    	  is not present [ruby-core:47344] [Bug #6945]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 30, 2012
Commits on Aug 27, 2012
  1. @nurse

    merge revision(s) 33772:

    	* test/webrick/test_cgi.rb (TestWEBrickCGI#start_cgi_server): there are
    	  no guarantee of existance of RbConfig::CONFIG['LIBPATHENV'].
    	  it only exists in Unix-like environments.
    
    	* test/webrick/test_filehandler.rb
    	  (WEBrick::TestFileHandler#test_script_disclosure): ditto.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 27, 2012
Commits on Aug 23, 2012
  1. @nurse

    merge revision(s) 36668: [Backport #6846]

    	* test/ruby/test_file_exhaustive.rb
    	  (TestFileExhaustive#test_stat_special_file): add a test.
    	  GetFileAttributesExW fails to get attributes of special files
    	  such as pagefile.sys.
    
    	* win32/win32.c (check_valid_dir): for performance, check the path
    	  by FindFirstFileW only if the path contains "...".
    
    	* win32/win32.c (winnt_stat): use GetFileAttributesExW instead of
    	  FindFirstFileW since GetFileAttributesExW is faster.
    	  Based on the patch by Dusan D. Majkic.
    	  [ruby-core:47083] [Feature #6845]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 23, 2012
  2. @nurse

    merge revision(s) 35978,36013,36014,36015,36052,36076,36487: [Backpor…

    …t #6898]
    
    	* thread_pthread.c (ruby_init_stack): use stack info if possible.
    
    	* thread_pthread.c (ruby_init_stack): adjust stack size for offset of
    	  addr from the bottom.
    
    	* thread_pthread.c (get_stack): seems stack size does not include
    	  guard size on Mac OS X.
    
    	* gc.h (IS_STACK_DIR_UPPER): utility macro.
    
    	* thread_pthread.c (get_stack): Linux is the only OS which includes
    	  the size of guard page into the stack size.
    
    	* thread_pthread.c (ruby_init_stack): STACK_GROW_DIR_DETECTION is
    	  necessary on platforms with unknown stack direction.  [Bug #6761]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 23, 2012
Commits on Aug 20, 2012
  1. @nurse

    merge revision(s) 33991:

    	* file.c (file_path_convert): don't convert it when the path string is
    	  ascii only. [ruby-core:41556] [Bug #5733]
    	  tests are contributed by nobu.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 20, 2012
Commits on Aug 9, 2012
  1. @nurse

    merge revision(s) 34972:

    	* pack.c (pack_unpack): when unpack('M') occurs an illegal byte
    	  sequence, output the "=" character and the following character in
    	  the decoded data without any transformation.
    	  [ruby-dev:44875] [Bug #5635]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Aug 9, 2012
Commits on Aug 7, 2012
  1. * 2012-08-08

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    svn committed Aug 7, 2012
  2. @tenderlove

    merge revision(s) r36583, r36458, r36414, r36103, r35690, r35681, r35…

    …658, r35657, r35655, r35492: [Backport #6815]
    
        * ext/psych/lib/psych.rb: updated to released version.
    
        * ext/psych/psych.gemspec: ditto
    
        * ext/psych/emitter.c (initialize): allow a configuration object to be
          passed to the constructor so that mutation isn't required after
          instantiation.
    
        * ext/psych/lib/psych/handler.rb: add configuration object
    
        * ext/psych/lib/psych/visitors/emitter.rb: use configuration object if
          extra configuration is present.
    
        * ext/psych/lib/psych/visitors/to_ruby.rb: strings with YAML anchors
          are properly referenced. Patched by Joe Rafaniello via Github:
            tenderlove/psych#69
        * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
        * test/psych/test_alias_and_anchor.rb: test for change
    
        * ext/psych/lib/psych.rb: bumping psych to 1.3.3
        * ext/psych/psych.gemspec: ditto
    
        * ext/psych/extconf.rb: Use an exception instaed of bare abort.
    
        * ext/psych/parser.c (transcode_string): fix encoding index names.
          Thanks markizko for reporting.
    
        * ext/psych/lib/psych/visitors/to_ruby.rb: fix a bug with string
          subclass dumping and loading.
    
        * test/psych/test_array.rb: pertinent tests
    
        * test/psych/test_string.rb: ditto
    
        * ext/psych/lib/psych/visitors/to_ruby.rb: convert omap tagged maps to
          Psych::Omap objects rather than hashes. [Bug #6425]
    
        * test/psych/test_omap.rb: pertinent test.
    
        * ext/psych/lib/psych/visitors/yaml_tree.rb: keep a reference to
          custom coders so that GC does not impact dumped yaml reference ids.
    
        * ext/psych/lib/psych/json/yaml_events.rb: implicit styles should not
          be changeable for JSON events.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    tenderlove committed Aug 7, 2012
Commits on Jul 29, 2012
  1. @nurse

    merge revision(s) 36455: [Backport #6772]

    	* ext/curses/extconf.rb: support PDCurses.  patched by Luis Lavena.
    	  [ruby-core:46485] [Feature #6735]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Jul 29, 2012
Commits on Jul 28, 2012
  1. @nurse

    merge revision(s) 34880:

    	* configure.in (ruby_pc): make configurable.  [Bug #6051]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@36562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nurse committed Jul 28, 2012