From 7785612a384d7582dedbf4419917c821ad30ed95 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 17 Jun 2009 16:29:22 +0000 Subject: * 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 --- file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'file.c') diff --git a/file.c b/file.c index 41080ff238..0b1eef2a79 100644 --- a/file.c +++ b/file.c @@ -2745,6 +2745,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 v1.2.3