mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (debug_lines, coverage): set file path encoding for coverage
result. [ruby-dev:44950] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b94b32dd9
commit
8107587039
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Feb 2 01:24:34 2012 Yusuke Endoh <mame@tsg.ne.jp>
|
||||||
|
|
||||||
|
* parse.y (debug_lines, coverage): set file path encoding for coverage
|
||||||
|
result. [ruby-dev:44950]
|
||||||
|
|
||||||
Wed Feb 1 14:38:31 2012 Akinori MUSHA <knu@iDaemons.org>
|
Wed Feb 1 14:38:31 2012 Akinori MUSHA <knu@iDaemons.org>
|
||||||
|
|
||||||
* lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): Just
|
* lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): Just
|
||||||
|
|
4
parse.y
4
parse.y
|
@ -5736,7 +5736,7 @@ debug_lines(const char *f)
|
||||||
if (rb_const_defined_at(rb_cObject, script_lines)) {
|
if (rb_const_defined_at(rb_cObject, script_lines)) {
|
||||||
VALUE hash = rb_const_get_at(rb_cObject, script_lines);
|
VALUE hash = rb_const_get_at(rb_cObject, script_lines);
|
||||||
if (RB_TYPE_P(hash, T_HASH)) {
|
if (RB_TYPE_P(hash, T_HASH)) {
|
||||||
VALUE fname = rb_str_new2(f);
|
VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
|
||||||
VALUE lines = rb_ary_new();
|
VALUE lines = rb_ary_new();
|
||||||
rb_hash_aset(hash, fname, lines);
|
rb_hash_aset(hash, fname, lines);
|
||||||
return lines;
|
return lines;
|
||||||
|
@ -5750,7 +5750,7 @@ coverage(const char *f, int n)
|
||||||
{
|
{
|
||||||
VALUE coverages = rb_get_coverages();
|
VALUE coverages = rb_get_coverages();
|
||||||
if (RTEST(coverages) && RBASIC(coverages)->klass == 0) {
|
if (RTEST(coverages) && RBASIC(coverages)->klass == 0) {
|
||||||
VALUE fname = rb_str_new2(f);
|
VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
|
||||||
VALUE lines = rb_ary_new2(n);
|
VALUE lines = rb_ary_new2(n);
|
||||||
int i;
|
int i;
|
||||||
RBASIC(lines)->klass = 0;
|
RBASIC(lines)->klass = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue