Project

General

Profile

« Previous | Next » 

Revision b20e9ebe

Added by nagachika (Tomoyuki Chikanaga) over 6 years ago

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@61367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e