rb_file_dirname return wrong encoding string when dir is "."
|Target version:||current: 2.2.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.
- Status changed from Open to Feedback
"." is 7bit only, it has no differences.
Why do you consider it wrong?
The rbfiledirname should not return diffrent encoding string value just because the string's content diffrent.
And some other function like rbfileexpand_path will return the value with the input paramter's incoding,and the result is not 7bit string.
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?
rbusasciistr_new2() makes a string in US-ASCII, which is 7bit.
- Status changed from Feedback to Rejected
Yes,you are right,maybe my problem couse by the other reason.
- Status changed from Rejected to Open
(reopened. the reason is written at #8789)
- Target version changed from 2.1.0 to current: 2.2.0
Also available in: Atom