summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 19:24:18 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-28 19:24:18 +0000
commit8176a62ff210dd83b4d2db4b173b7ac0ec392a92 (patch)
tree38fcb29c8741e53f7de7a44856814bb834a17692 /include
parent10735fd63591cdd788fbcc6cfd5152c6d3e34baa (diff)
downloadruby-8176a62ff210dd83b4d2db4b173b7ac0ec392a92.tar.gz
ruby-8176a62ff210dd83b4d2db4b173b7ac0ec392a92.tar.xz
ruby-8176a62ff210dd83b4d2db4b173b7ac0ec392a92.zip
* hash.c (rb_f_getenv): use rb_filesystem_str_new_cstr
instead of rb_str_new2. ENV['PATH'].encoding should be Filesystem Encoding because its content is related to filesystem. see [ruby-dev:39393] * hash.c (env_fetch): ditto. * string.c (rb_filesystem_str_new): defined. * string.c (rb_filesystem_str_new_cstr): ditto. * include/ruby/intern.h (rb_filesystem_str_new): added. * include/ruby/intern.h (rb_filesystem_str_new_cstr): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index b829c2741..9a5a9d8a4 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -601,6 +601,8 @@ VALUE rb_external_str_new(const char*, long);
VALUE rb_external_str_new_cstr(const char*);
VALUE rb_locale_str_new(const char*, long);
VALUE rb_locale_str_new_cstr(const char*);
+VALUE rb_filesystem_str_new(const char*, long);
+VALUE rb_filesystem_str_new_cstr(const char*);
VALUE rb_str_buf_new(long);
VALUE rb_str_buf_new_cstr(const char*);
VALUE rb_str_buf_new2(const char*);