[ruby-cvs:68478] nobu:r61297 (trunk): ruby.c: script __dir__ encoding

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Dec 16 22:25:11 JST 2017


nobu	2017-12-16 22:25:11 +0900 (Sat, 16 Dec 2017)

  New Revision: 61297

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

  Log:
    ruby.c: script __dir__ encoding
    
    * ruby.c (process_options): fallback to the encoding of the script
      name since rb_realpath_internal() cannot convert the encoding
      when it is ASCII-8BIT.
    
    * test/ruby/test_rubyoptions.rb (test___dir__encoding): explicitly
      pass environment variables for locale as they are overriden by
      invoke_ruby.

  Modified files:
    trunk/ruby.c
    trunk/test/ruby/test_rubyoptions.rb


More information about the ruby-cvs mailing list