[ruby-cvs:69924] nagachika:r62784 (ruby_2_4): merge revision(s) 58745, 58780, 59040, 60743: [Backport #13863]

nagachika at ruby-lang.org nagachika at ruby-lang.org
Sat Mar 17 02:34:44 JST 2018


nagachika	2018-03-17 02:34:44 +0900 (Sat, 17 Mar 2018)

  New Revision: 62784

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

  Log:
    merge revision(s) 58745,58780,59040,60743: [Backport #13863]
    
    rb_w32_ugetcwd: UTF-8 version getcwd
    
    * dir.c (rb_dir_getwd): convert from UTF-8.
    
    * win32/win32.c (w32_getcwd): codepage aware getcwd using
      GetCurrentDirectoryW.
    potential memory leak
    
    * dir.c (rb_dir_getwd): get rid of potential memory leak.
    
    * util.c (ruby_getcwd): ditto.
    file.c: realpath in OS path encoding
    
    * dir.c (rb_dir_getwd_ospath): return cwd path in the OS path
      encoding.
    
    * file.c (rb_realpath_internal): work in the OS path encoding
    load.c: cwd encoding
    
    * load.c (rb_get_expanded_load_path): save cwd cache in OS path
      encoding, to get rid of unnecessary conversion and infinite
      loading when it needs encoding conversion.
      [ruby-dev:50221] [Bug #13863]

  Modified directories:
    branches/ruby_2_4/
  Modified files:
    branches/ruby_2_4/dir.c
    branches/ruby_2_4/file.c
    branches/ruby_2_4/internal.h
    branches/ruby_2_4/load.c
    branches/ruby_2_4/test/ruby/test_rubyoptions.rb
    branches/ruby_2_4/util.c
    branches/ruby_2_4/version.h
    branches/ruby_2_4/win32/dir.h
    branches/ruby_2_4/win32/win32.c


More information about the ruby-cvs mailing list