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 /file.c | |
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
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |