W
Wouter Smeenk
------=_Part_4884_12844533.1170852498560
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello all,
I'm relatively new to ruby and I think I've found a bug. It doesn't
seem to be in my code.
I written this test script:
# test.rb #####################
File.open("blaat.txt","w") do |f|
f.write "test\r\n"
f.write "test\r"
f.write "test\n"
end
############################
And it produces unexpected results. It seems to insert a "\r" before
every "\n". I have included the result of this script on my computer.
I'm running Windows XP SP2 and ruby 1.8.5.
Does anyone know what the problem could be and how to fix it?
Wouter Smeenk
------=_Part_4884_12844533.1170852498560
Content-Type: text/plain; name=blaat.txt; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
X-Attachment-Id: f_exvr8rvu
Content-Disposition: attachment; filename="blaat.txt"
dGVzdA0NCnRlc3QNdGVzdA0K
------=_Part_4884_12844533.1170852498560--
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hello all,
I'm relatively new to ruby and I think I've found a bug. It doesn't
seem to be in my code.
I written this test script:
# test.rb #####################
File.open("blaat.txt","w") do |f|
f.write "test\r\n"
f.write "test\r"
f.write "test\n"
end
############################
And it produces unexpected results. It seems to insert a "\r" before
every "\n". I have included the result of this script on my computer.
I'm running Windows XP SP2 and ruby 1.8.5.
Does anyone know what the problem could be and how to fix it?
Wouter Smeenk
------=_Part_4884_12844533.1170852498560
Content-Type: text/plain; name=blaat.txt; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
X-Attachment-Id: f_exvr8rvu
Content-Disposition: attachment; filename="blaat.txt"
dGVzdA0NCnRlc3QNdGVzdA0K
------=_Part_4884_12844533.1170852498560--