From: Kenny Lam Date: 2010-11-05T04:26:51+09:00 Subject: Re: 1.9 CSV Parsing Issues File.read shows "field1,field2\nfield3,field4\n" I have played around with the some of the other methods and have determined that this problem only seems to occur when using CSV::open and then looped through with CSV::each. CSV::foreach and CSV::parse seem fine. Unfortunately, I need to use CSV::open because I need a reference to the opened file object in order to do some file cursor manipulation. Other things I have noted is that when running CSV.open('file','r') the result is show: <#CSV io_type:File io_path:"/log/test.log" encoding:CP850 lineno:0 col_sep:"," row_sep:"\r\n" quote_char:"\""> While CSV.open('test.log','r',:row_sep => '\r\n') shows result: <#CSV io_type:File io_path:"/log/test.log" encoding:CP850 lineno:0 col_sep:"," row_sep:"\\r\\n" quote_char:"\""> The double backslashes make me question if the escape character is being processed correctly. I am relatively new to Ruby, am I using the language incorrectly or is this a bug? -- Posted via http://www.ruby-forum.com/.