Bug #8774
closedrb_file_dirname return wrong encoding string when dir is "."
Description
When File.dirname()'s value is ".", the value is wrong encoded.
Files
Updated by nobu (Nobuyoshi Nakada) about 11 years ago
- Status changed from Open to Feedback
"." is 7bit only, it has no differences.
Why do you consider it wrong?
Updated by jiayp@glodon.com (贾 延平) about 11 years ago
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.
Updated by jiayp@glodon.com (贾 延平) about 11 years ago
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?
Updated by nobu (Nobuyoshi Nakada) about 11 years ago
rb_usascii_str_new2() makes a string in US-ASCII, which is 7bit.
Updated by nobu (Nobuyoshi Nakada) about 11 years ago
- Status changed from Feedback to Rejected
Updated by jiayp@glodon.com (贾 延平) about 11 years ago
Yes,you are right,maybe my problem couse by the other reason.
Updated by usa (Usaku NAKAMURA) almost 11 years ago
- Status changed from Rejected to Open
(reopened. the reason is written at #8789)
Updated by jiayp@glodon.com (贾 延平) almost 11 years ago
Any progress?
Updated by hsbt (Hiroshi SHIBATA) over 10 years ago
- Target version changed from 2.1.0 to 2.2.0
Updated by jeremyevans0 (Jeremy Evans) about 5 years ago
- Status changed from Open to Closed
- Backport deleted (
1.9.3: UNKNOWN, 2.0.0: UNKNOWN)