General

Profile

jiayp@glodon.com (贾 延平)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 7 7

Activity

09/25/2013

12:25 PM Ruby Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
Any progress? jiayp@glodon.com (贾 延平)
12:12 PM Ruby Bug #8677: $LOAD_PATH did not encoded into the "internal encoding"
Hope fix in Ruby 2.1 jiayp@glodon.com (贾 延平)

08/16/2013

03:09 PM Ruby Bug #8789 (Closed): File.expand_path(File.dirname(__FILE__)) return wrong encoded result
A test.rb in a nonascii path with the follow content:
```ruby
puts File.expand_path(File.dirname(__FILE__)).encoding
```
Run it with utf-8 as internal encoding.
expect result: UTF-8
actual result:US-ASCII
Tested on windows ...
jiayp@glodon.com (贾 延平)

08/14/2013

02:25 PM Ruby Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
Yes,you are right,maybe my problem couse by the other reason. jiayp@glodon.com (贾 延平)
09:37 AM Ruby Bug #8774: rb_file_dirname return wrong encoding string when dir is "."
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?
jiayp@glodon.com (贾 延平)

08/13/2013

11:05 AM Ruby Bug #8775: Dir.getwd's encoding is wrong
Maybe I did not speake clearly,When we write ruby code,we should consider the string create is internal encoding by default,and if internal encoding != filesystem encoding when we use the File.getwd result with other strings that will be... jiayp@glodon.com (贾 延平)

08/12/2013

04:50 PM Ruby Bug #8776: script_name's encoding is wrong
In this call flow
rb_f_load -> rb_load_internal -> rb_load_file_str -> load_file -> load_file_internal -> rb_parser_compile_string_path
When load a utf-8 encoded path will be considered a filesystem encoded path and load failure.
jiayp@glodon.com (贾 延平)
03:55 PM Ruby Bug #8776: script_name's encoding is wrong
I have seen the error handling code and don't know how to fix the error.
I once think ruby will do the encode work at the boundary of the external system as soon as possible,And keep the internal system clear with the internal encodi...
jiayp@glodon.com (贾 延平)
12:24 PM Ruby Bug #8776: script_name's encoding is wrong
But the external file path should encoded into internal encoding when it is used in ruby system, is it right?
What is the right opportunity to encode the path and fix the exception's calltack's encoding error?
jiayp@glodon.com (贾 延平)
03:31 PM Ruby Bug #8775: Dir.getwd's encoding is wrong
You mean the code
File.getwd+'some utf-8 file name'
Should raise encoding compitable error?
Where I can see the ruby's internal design principle for encoding?When encode to internal encoding?When do not?
The doc:http://www.ruby-doc.org...
jiayp@glodon.com (贾 延平)

Also available in: Atom