mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
f926980902
commit
c882b8e84d
2 changed files with 5 additions and 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>
|
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.
|
* io.c (nogvl_io_cntl): rb_cloexec_fcntl_dupfd's 2nd argument is int.
|
||||||
|
|
1
file.c
1
file.c
|
@ -3176,6 +3176,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
|
||||||
if (tainted) OBJ_TAINT(result);
|
if (tainted) OBJ_TAINT(result);
|
||||||
rb_str_set_len(result, p - buf);
|
rb_str_set_len(result, p - buf);
|
||||||
rb_enc_check(fname, result);
|
rb_enc_check(fname, result);
|
||||||
|
ENC_CODERANGE_CLEAR(result);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue