* dir.c: preserve encoding of strings in glob and fnmatch.

* include/ruby/ruby.h: related changes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2008-07-07 17:29:44 +00:00
parent f10c88827e
commit 0ad460dde8
4 changed files with 103 additions and 157 deletions

View file

@ -725,10 +725,9 @@ struct RBignum {
void rb_obj_infect(VALUE,VALUE);
typedef int ruby_glob_func(const char*,VALUE);
void rb_glob(const char*,void(*)(const char*,VALUE),VALUE);
typedef int ruby_glob_func(VALUE,VALUE);
void rb_glob(const char*,void(*)(VALUE,VALUE),VALUE);
int ruby_glob(const char*,int,ruby_glob_func*,VALUE);
int ruby_brace_expand(const char*,int,ruby_glob_func*,VALUE);
int ruby_brace_glob(const char*,int,ruby_glob_func*,VALUE);
VALUE rb_define_class(const char*,VALUE);