mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02: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:
parent
ac5b69acb8
commit
755a86b87a
2 changed files with 6 additions and 2 deletions
3
file.c
3
file.c
|
@ -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*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue