summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-16 01:54:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-16 01:54:05 +0000
commit7b4f0c0d1d4815807b000506cb470eb925834f9d (patch)
treef44dbeb0f29d7e3ec26412f5484eab6013139377 /file.c
parentad54de2acac70ba2f889892df950508edbc972b7 (diff)
file.c: ASCII-compatible
* file.c (rb_file_join): path names must be ASCII-compatible. [ruby-core:48012] [Bug #7168] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37207 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 22df4420be..f4ae1bb155 100644
--- a/file.c
+++ b/file.c
@@ -3924,6 +3924,7 @@ rb_file_join(VALUE ary, VALUE sep)
for (i=0; i<RARRAY_LEN(ary); i++) {
tmp = RARRAY_PTR(ary)[i];
if (RB_TYPE_P(tmp, T_STRING)) {
+ check_path_encoding(tmp);
len += RSTRING_LEN(tmp);
}
else {