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

* file.c (file_expand_path): drive letter is ascii only.

[ruby-dev:38612]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-06-17 16:29:22 +00:00
parent 4d3c75e2b0
commit 7785612a38
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Thu Jun 18 01:29:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (file_expand_path): drive letter is ascii only.
[ruby-dev:38612]
Thu Jun 18 01:09:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> Thu Jun 18 01:09:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in (ridir, RI_BASE_NAME): fixed for path expansion. * configure.in (ridir, RI_BASE_NAME): fixed for path expansion.

1
file.c
View file

@ -2745,6 +2745,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
memcpy(p, s, 2); memcpy(p, s, 2);
p += 2; p += 2;
s += 2; s += 2;
rb_enc_associate_index(result, rb_usascii_encindex());
} }
else { else {
/* specified drive, but not full path */ /* specified drive, but not full path */