Bug #8789
Updated by nobu (Nobuyoshi Nakada) about 7 years ago
=begin A test.rb in a nonascii path with the follow content: ```ruby puts (({puts File.expand_path(File.dirname(__FILE__)).encoding File.expand_path(File.dirname(__FILE__)).encoding})) ``` Run it with utf-8 as internal encoding. expect result: UTF-8 actual result:US-ASCII Tested on windows 7. I submited a patch to fix this problem but in a wrong way, check it(https://bugs.ruby-lang.org/issues/8774), hope it can help to fix this problem. =end