[前][次][番号順一覧][スレッド一覧]

ruby-changes:54701

From: nobu <ko1@a...>
Date: Thu, 24 Jan 2019 19:10:23 +0900 (JST)
Subject: [ruby-changes:54701] nobu:r66917 (trunk): eval_error.c: should not escapce newline and tab

nobu	2019-01-24 19:10:18 +0900 (Thu, 24 Jan 2019)

  New Revision: 66917

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66917

  Log:
    eval_error.c: should not escapce newline and tab

  Modified files:
    trunk/eval_error.c
Index: eval_error.c
===================================================================
--- eval_error.c	(revision 66916)
+++ eval_error.c	(revision 66917)
@@ -87,6 +87,9 @@ write_warnq(VALUE out, VALUE str, const https://github.com/ruby/ruby/blob/trunk/eval_error.c#L87
         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;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]