ruby-changes:44192
From: nobu <ko1@a...>
Date: Tue, 27 Sep 2016 14:34:46 +0900 (JST)
Subject: [ruby-changes:44192] nobu:r56265 (trunk): iseq.c: file name encoding
nobu 2016-09-27 14:34:41 +0900 (Tue, 27 Sep 2016) New Revision: 56265 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56265 Log: iseq.c: file name encoding * iseq.c (iseqw_s_compile): keep the encoding of file name. Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 56264) +++ iseq.c (revision 56265) @@ -817,19 +817,17 @@ iseqw_s_compile_file(int argc, VALUE *ar https://github.com/ruby/ruby/blob/trunk/iseq.c#L817 VALUE parser; VALUE f; NODE *node; - const char *fname; rb_compile_option_t option; rb_secure(1); rb_scan_args(argc, argv, "11", &file, &opt); FilePathValue(file); file = rb_fstring(file); /* rb_io_t->pathv gets frozen anyways */ - fname = StringValueCStr(file); f = rb_file_open_str(file, "r"); parser = rb_parser_new(); - node = rb_parser_compile_file(parser, fname, f, NUM2INT(line)); + node = rb_parser_compile_file_path(parser, file, f, NUM2INT(line)); rb_io_close(f); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/