diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-29 08:14:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-29 08:14:39 +0000 |
commit | b861b2a6b2eb4deda6e842c705cf6b602fad3784 (patch) | |
tree | fffca50473a3b5ec1d79d2f49ef76cd7f76af30d /file.c | |
parent | c212f81dde8dc5b26c9d6552752d1454e92b6947 (diff) |
* file.c (file_expand_path): should copy original encoding.
[ruby-dev:38612]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2749,7 +2749,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result) memcpy(p, s, 2); p += 2; s += 2; - rb_enc_associate_index(result, rb_usascii_encindex()); + rb_enc_copy(result, fname); } else { /* specified drive, but not full path */ |