From: minorityland@... Date: 2018-03-12T10:31:24+00:00 Subject: [ruby-core:86088] [Ruby trunk Bug#14598] [2.6.0 Preview1] Flood of error message occurs when throwing an error including "\n" in its message. Issue #14598 has been updated by minoritea (Minori Tokuda). I tried to translate the original text. ---- Version: ruby 2.6.0preview1 (2018-02-24 trunk 62554) [x86_64-darwin17] Environment: MacOS 10.13.3 Macbook Pro(Core i7, 16GB RAM) How to reproduce: ruby -e 'fail "\n"' On calling fail/raise with a message string which includes "\n", the output floods in screen. The three lines from the top are below: """ Traceback (most recent call last): -e:1:in
': (RuntimeError) a?$-p ??N??{T?(? """ If I redirected the output to another process or file, the error is displayed correctly. Therefore, this event might cause in terminals only. By the way, I tried it at 2.5.0 and it did not reproduce. ---------------------------------------- Bug #14598: [2.6.0 Preview1] Flood of error message occurs when throwing an error including "\n" in its message. https://bugs.ruby-lang.org/issues/14598#change-70956 * Author: minoritea (Minori Tokuda) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- 2.6.0-preview1������������������������������������������������������������������ ���������������: ruby 2.6.0preview1 (2018-02-24 trunk 62554) [x86_64-darwin17] ������: MacOS 10.13.3 Macbook Pro(Core i7, 16GB RAM) ������������: ruby -e 'fail "\n"' ������: fail/raise������������������������������������"\n"��������������������������� ������������������������������������������������������������������������������������ ��������������������������������������������������������������� """ Traceback (most recent call last): -e:1:in `
': (RuntimeError) a?$-p ??N?`?`{T`?(? """ ��������������������������������������������������������������������������������������������������� ������������������������������������������������������������������ ���������������2.5.0��������������������������������������������������� -- https://bugs.ruby-lang.org/ Unsubscribe: