Issue #8774 has been updated by jiayp / glodon.com (? 延平).


The rb_file_dirname should not return diffrent encoding string value just because the string's content diffrent.
And some other function like rb_file_expand_path will return the value with the input paramter's incoding,and the result is not 7bit string. 
----------------------------------------
Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
https://bugs.ruby-lang.org/issues/8774#change-41098

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/