diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-24 10:10:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-01-24 10:10:18 +0000 |
commit | c6fb7c1f33e128618bcd7799a2de52874c7ebdd8 (patch) | |
tree | 991914c0484db117b7eb0f6c3a538f84fea51322 /eval_error.c | |
parent | e608402019642719dd994728c15c8ef45f163d4d (diff) |
eval_error.c: should not escapce newline and tab
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r-- | eval_error.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/eval_error.c b/eval_error.c index edc8639705..b0ee0f45c9 100644 --- a/eval_error.c +++ b/eval_error.c @@ -87,6 +87,9 @@ write_warnq(VALUE out, VALUE str, const char *ptr, long len) const long olen = len; for (; len > 0; --len, ++ptr) { unsigned char c = *ptr; + switch (c) { + case '\n': case '\t': continue; + } if (rb_iscntrl(c)) { char buf[5]; const char *cc = 0; |