From 3dcfa4a50465c1bd9904198b1bcb41af3db04280 Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 21 Jun 2009 10:34:31 +0000 Subject: merges r23729 from trunk into ruby_1_9_1. -- * file.c (file_expand_path): drive letter is ascii only. [ruby-dev:38612] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'file.c') diff --git a/file.c b/file.c index 4ea759fa3..a4082b9b1 100644 --- a/file.c +++ b/file.c @@ -2665,6 +2665,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()); } else { /* specified drive, but not full path */ -- cgit