* eval_error.c (error_print): respect the encoding of the message.

* io.c (rb_write_error_str): use rb_w32_write_console() on Windows
  if stderr is a tty.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2014-11-29

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_exception.rb (TestException#test_output_string_encoding): test
  for r48637.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* encoding.c: remove unnecessary declaration of rb_locale_charmap().  it's
  already declared in include/ruby/encoding.h.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_exception.rb (TestException#test_output_string_encoding): need
  to specify the encoding of script.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
test/ruby: suppress warnings

* test/ruby/test_array.rb: (need_continuation): suppress warnings
  to require continuation.

* test/ruby/test_continuation.rb: ditto.

* test/ruby/test_enum.rb: ditto.

* test/ruby/test_fiber.rb: ditto.

* test/ruby/test_hash.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
error.c: simplify message building

* error.c (syserr_initialize): simplify message building and get
  rid of potential invalid byte sequence.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
ruby.c: use UTF-8 for loadpath as the fallback

* ruby.c (ruby_init_loadpath_safe): encode loadpaths in UTF-8 on
  Windows.  [ruby-core:62002] [Bug #9737]

* ruby.c (process_options): try encode loadpaths to locale
  encoding from UTF-8 if possible, on Windows.
ruby.c: use UTF-8 for argv

* ruby.c (process_options, ruby_script, ruby_set_argv): convert
  argv from UTF-8.

* win32/win32.c (rb_w32_sysinit, cmdglob, w32_cmdvector): convert
  wide char command line to UTF-8 argv.
win32.c: convert UTF-8 by Win32 API

* win32/win32.c (win32_direct_conv, rb_w32_readdir): convert UTF-8
  by using Win32 API directly.
ruby.c: convert to default external

* ruby.c (external_str_new_cstr): convert to default external
  encoding instead of default internal encoding, with most
  frequently used options.