Project

General

Profile

Actions

Bug #14942

closed

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

Added by yagisu (Sumi Yagi) about 6 years ago. Updated almost 6 years ago.

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

Description

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

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

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

Actions #1

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • 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]
Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 6 years ago

  • 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) almost 6 years ago

  • 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) almost 6 years ago

  • 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: Atom PDF

Like0
Like0Like0Like0Like0