зеркало из https://github.com/github/ruby.git
* ruby.c (load_file): enc must effect source encoding.
[ruby-core#15496] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0ecb56f170
Коммит
dd738cd887
|
@ -1,3 +1,8 @@
|
|||
Tue Feb 12 10:15:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* ruby.c (load_file): enc must effect source encoding.
|
||||
[ruby-core#15496]
|
||||
|
||||
Tue Feb 12 10:16:47 2008 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/rdoc/ri/paths.rb: Restore require rubygems check.
|
||||
|
|
1
ruby.c
1
ruby.c
|
@ -1192,6 +1192,7 @@ load_file(VALUE parser, const char *fname, int script, struct cmdline_options *o
|
|||
else {
|
||||
enc = rb_usascii_encoding();
|
||||
}
|
||||
rb_funcall(f, rb_intern("set_encoding"), 1, rb_enc_from_encoding(enc));
|
||||
tree = (NODE *)rb_parser_compile_file(parser, fname, f, line_start);
|
||||
rb_funcall(f, rb_intern("set_encoding"), 1, rb_parser_encoding(parser));
|
||||
if (script && rb_parser_end_seen_p(parser)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче