[ruby-cvs:68548] nagachika:r61367 (ruby_2_4): merge revision(s) 58146, 58150, 58156: [Backport #13276]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Thu Dec 21 00:20:15 JST 2017


nagachika	2017-12-21 00:20:15 +0900 (Thu, 21 Dec 2017)

  New Revision: 61367

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61367

  Log:
    merge revision(s) 58146,58150,58156: [Backport #13276]
    
    error.c: refactor warning messages
    
    * error.c (with_warning_string): extract building warning message
      string from variadic arguments.
    
    * error.c (syserr_warning): write warning message with the system
      error message.
    
    error.c: warning functions
    
    * error.c: define warning functions in all combinations of
      * no errno, system errno, argument
      * without/with encoding
      * enabled/disabled by default
    
    dir.c: err at glob failure
    
    * dir.c (glob_helper): raise a SystemCallError exception when
      opendir() failed, except for ENOENT, ENOTDIR, and EACCES.  this
      behavior predates 1.0; the comments in glob.c claimed that
      glob() returned -1 on error but actualy the pointer to a global
      variable, then dir_glob() did check only -1 as the comments, and
      ignored actual errors.  [ruby-core:80226] [Bug #13276]
    
    dir.c: ruby_glob_funcs_t

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/dir.c
    branches/ruby_2_4/error.c
    branches/ruby_2_4/internal.h
    branches/ruby_2_4/test/ruby/test_dir.rb
    branches/ruby_2_4/version.h


More information about the ruby-cvs mailing list