Project

General

Profile

Actions

Bug #14942

closed

Windows7でコンソールに長い文字列を出力できない

Bug #14942: Windows7でコンソールに長い文字列を出力できない

Added by yagisu (Sumi Yagi) over 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:50597]

Description

WindowsのRubyは、WriteConsoleWでコンソールに文字を出力していますが、
Windows7では、WriteConsoleで書き出せるバッファのサイズは61KB程度が限界のようです。
(WriteConsoleWで"あ"が31366文字まで、WriteConsoleAで"a"が62733文字まででした。)

長い文字列を出力する時は、小分けにして書き出してくれるとありがたいです。

※ Windows10では問題ありません。

Updated by nobu (Nobuyoshi Nakada) over 7 years ago Actions #1

  • Status changed from Open to Closed

Applied in changeset trunk|r64092.


win32.c: limit write size on console

  • win32/win32.c (constat_parse): split long buffer and limit write
    size on a console, as well as rb_w32_write.
    [ruby-dev:50597] [Bug #14942]

Updated by nobu (Nobuyoshi Nakada) over 7 years ago Actions #2

  • Backport changed from 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN to 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED

Updated by usa (Usaku NAKAMURA) about 7 years ago Actions #3 [ruby-dev:50624]

  • Backport changed from 2.3: REQUIRED, 2.4: REQUIRED, 2.5: REQUIRED to 2.3: REQUIRED, 2.4: DONE, 2.5: REQUIRED

ruby_2_4 r64564 merged revision(s) 64092.

Updated by nagachika (Tomoyuki Chikanaga) about 7 years ago Actions #4 [ruby-dev:50628]

  • Backport changed from 2.3: REQUIRED, 2.4: DONE, 2.5: REQUIRED to 2.3: REQUIRED, 2.4: DONE, 2.5: DONE

ruby_2_5 r64617 merged revision(s) 64092.

Actions

Also available in: PDF Atom