1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* file.c (SET_EXTERNAL_ENCODING): avoid call rb_enc_check() on

half-baked result string.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-04-14 13:45:26 +00:00
parent ac5b69acb8
commit 755a86b87a
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Mon Apr 14 22:44:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* file.c (SET_EXTERNAL_ENCODING): avoid call rb_enc_check() on
half-baked result string.
Mon Apr 14 17:23:27 2008 Akinori MUSHA <knu@iDaemons.org>
* hash.c (rb_hash_delete_if, rb_hash_reject_bang, env_delete_if,

3
file.c
View file

@ -2553,8 +2553,7 @@ rb_path_end(const char *path)
#define SET_EXTERNAL_ENCODING() (\
(void)(extenc || (extenc = rb_default_external_encoding())),\
rb_enc_associate(result, extenc),\
rb_enc_check(fname, result))
rb_enc_associate(result, extenc))
static int is_absolute_path(const char*);