From: "nobu (Nobuyoshi Nakada)" Date: 2013-08-13T10:20:41+09:00 Subject: [ruby-core:56587] [ruby-trunk - Bug #8775] Dir.getwd's encoding is wrong Issue #8775 has been updated by nobu (Nobuyoshi Nakada). If the filesystem encoding is not UTF-8. From when did you think it is always UTF-8? ---------------------------------------- Bug #8775: Dir.getwd's encoding is wrong https://bugs.ruby-lang.org/issues/8775#change-41123 Author: jiayp@glodon.com (��� ������) Status: Rejected Priority: Normal Assignee: cruby-windows Category: platform/windows Target version: current: 2.1.0 ruby -v: ruby 2.1.0dev (2013-08-10 trunk 42491) [i386-mingw32] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN See the patch. I do't know is this the right way,please check it . -- http://bugs.ruby-lang.org/