Project

General

Profile

Actions

Bug #5576

closed

[Universal Newline]改行コードが"\r\n"で出力されない

Added by pegacorn (pegacorn jp) about 13 years ago. Updated about 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
-
Backport:
[ruby-dev:44800]

Description

mswin/mingw版で、標準出力へのputsで改行コードが"\r\n"で出力されない。

[ruby-list:48514]より
C:¥>ruby -v
ruby 1.9.3p0 (2011-10-30) [i386-mingw32]
C:¥>ruby -e "puts 'test'" > 193.txt
C:¥>ruby -e "p open('193.txt','rb'){|f| f.read}"
"test¥n"

Tempfile#putsでも同様です。
標準出力へのputsの動作が変わったのは、r31351~r31357の辺りのようです。


Related issues 1 (0 open1 closed)

Is duplicate of Backport193 - Backport #5565: STDOUT.puts writes LF (not CR+LF) in textmodeClosedtarui (Masaya Tarui)11/04/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0