diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 08:17:59 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 08:17:59 +0000 |
commit | c882b8e84d4a3398671b0387c1294d9807a89b0b (patch) | |
tree | 35109732b3505be93729e9e638d78ff1f71653fb | |
parent | f9269809027806f3b41ad73207721bd8adb35650 (diff) | |
download | ruby-c882b8e84d4a3398671b0387c1294d9807a89b0b.tar.gz |
* file.c (file_expand_path): reset coderange after expanding path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | file.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Nov 1 17:17:26 2011 NARUSE, Yui <naruse@ruby-lang.org> + + * file.c (file_expand_path): reset coderange after expanding path. + Tue Nov 1 14:55:29 2011 NARUSE, Yui <naruse@ruby-lang.org> * io.c (nogvl_io_cntl): rb_cloexec_fcntl_dupfd's 2nd argument is int. @@ -3176,6 +3176,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result) if (tainted) OBJ_TAINT(result); rb_str_set_len(result, p - buf); rb_enc_check(fname, result); + ENC_CODERANGE_CLEAR(result); return result; } |