file.c (rb_str_encode_ospath): when the encoding of the parameter
is ASCII-8BIT, should recognize as filesystem encoding, and convert
to UTF-8 on Windows.
file.c (realpath_rec): should convert to ospath encoding before
calling lstat().
file.c (rb_realpath_internal): resolved string should take over
the encoding of base string.
transcode.c (rb_str_encode): should return new string always.
fixed #3444.
file.c (rb_str_encode_ospath): when the encoding of the parameter
is ASCII-8BIT, should recognize as filesystem encoding, and convert
to UTF-8 on Windows.
file.c (realpath_rec): should convert to ospath encoding before
calling lstat().
file.c (rb_realpath_internal): resolved string should take over
the encoding of base string.
transcode.c (rb_str_encode): should return new string always.
fixed #3444.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e