summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-19 08:33:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-19 08:33:01 +0000
commita1485dbea0024a5a263b40843f7af95e9c72925c (patch)
tree41ff49eb0653e30f6bc38db85622553228faf8c0 /file.c
parentbdde51172cbf2754f6bbaa9e1678fbcc3d689dba (diff)
* dir.c (GlobPathValue), file.c (rb_get_path_check): path names
must be ASCII compatible. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/file.c b/file.c
index b872002c2f..ef7ad0e777 100644
--- a/file.c
+++ b/file.c
@@ -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);
}