From: "jiayp@... (贾 延平)" Date: 2013-08-14T09:37:08+09:00 Subject: [ruby-core:56608] [ruby-trunk - Bug #8774] rb_file_dirname return wrong encoding string when dir is "." Issue #8774 has been updated by jiayp@glodon.com (��� ������). I did not write clear,the ".' having the encoding ascii-8bit not ascii-7bit���so it will be some problem. Why ruby's default encoding is ascii-8bit not ascii-7bit,will we need the 8bit in there some condition? ---------------------------------------- Bug #8774: rb_file_dirname return wrong encoding string when dir is "." https://bugs.ruby-lang.org/issues/8774#change-41144 Author: jiayp@glodon.com (��� ������) Status: Feedback Priority: Normal Assignee: Category: core 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 When File.dirname()'s value is ".", the value is wrong encoded. -- http://bugs.ruby-lang.org/