summaryrefslogtreecommitdiff
path: root/vm_backtrace.c
diff options
context:
space:
mode:
authorYusuke Endoh <[email protected]>2024-01-19 16:03:38 +0900
committerYusuke Endoh <[email protected]>2024-02-15 18:42:31 +0900
commit25d74b9527cd525042ad0b612b794fa331d3a318 (patch)
tree3b40adf0eb79bb5d7e81640d98dee162c35c076b /vm_backtrace.c
parent926277bf826127c65689ddf01f94e23d538a3b8b (diff)
Do not include a backtick in error messages and backtraces
[Feature #16495]
Diffstat (limited to 'vm_backtrace.c')
-rw-r--r--vm_backtrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_backtrace.c b/vm_backtrace.c
index 409f71d320..d59f23e6a9 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -396,7 +396,7 @@ location_format(VALUE file, int lineno, VALUE name)
rb_str_cat_cstr(s, "unknown method");
}
else {
- rb_str_catf(s, "`%s'", RSTRING_PTR(name));
+ rb_str_catf(s, "'%s'", RSTRING_PTR(name));
}
return s;
}
@@ -973,7 +973,7 @@ oldbt_print(void *data, VALUE file, int lineno, VALUE name)
RSTRING_PTR(file), lineno);
}
else {
- fprintf(fp, "\tfrom %s:%d:in `%s'\n",
+ fprintf(fp, "\tfrom %s:%d:in '%s'\n",
RSTRING_PTR(file), lineno, RSTRING_PTR(name));
}
}
@@ -1012,7 +1012,7 @@ oldbt_bugreport(void *arg, VALUE file, int line, VALUE method)
fprintf(fp, "%s:%d:in unknown method\n", filename, line);
}
else {
- fprintf(fp, "%s:%d:in `%s'\n", filename, line, RSTRING_PTR(method));
+ fprintf(fp, "%s:%d:in '%s'\n", filename, line, RSTRING_PTR(method));
}
}
@@ -1053,7 +1053,7 @@ oldbt_print_to(void *data, VALUE file, int lineno, VALUE name)
rb_str_cat2(str, "unknown method\n");
}
else {
- rb_str_catf(str, " `%"PRIsVALUE"'\n", name);
+ rb_str_catf(str, " '%"PRIsVALUE"'\n", name);
}
(*arg->iter)(arg->output, str);
}