diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-19 08:33:01 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-19 08:33:01 +0000 |
| commit | 0820c654b26dd36145d1bd394ea58df80fc54918 (patch) | |
| tree | 41ff49eb0653e30f6bc38db85622553228faf8c0 /file.c | |
| parent | 3dd4ff97ccf4d77a781d5523e8f89f8f261d0e4d (diff) | |
| download | ruby-0820c654b26dd36145d1bd394ea58df80fc54918.tar.gz ruby-0820c654b26dd36145d1bd394ea58df80fc54918.tar.xz ruby-0820c654b26dd36145d1bd394ea58df80fc54918.zip | |
* dir.c (GlobPathValue), file.c (rb_get_path_check): path names
must be ASCII compatible.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
| -rw-r--r-- | file.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -127,6 +127,7 @@ rb_get_path_check(VALUE obj, int level) if (obj != tmp && insecure_obj_p(tmp, level)) { rb_insecure_operation(); } + rb_enc_check(tmp, rb_enc_from_encoding(rb_usascii_encoding())); return rb_str_new4(tmp); } |
