Project

General

Profile

Bug #9431

In windows ruby IO.write returns count of bytes without count of CR character

Added by bdimych (Dmitry Bolshakov) almost 6 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.0.0p247 (2013-06-27) [i386-mingw32]
[ruby-core:59876]

Description

C:\Users\bdimych>ruby -e "p IO.write('temp.txt', %Q(123\n)); p File.size('temp.txt')"
4
5

imho it looks unexpected

Also available in: Atom PDF