From: Rick DeNatale Date: 2007-11-07T00:16:20+09:00 Subject: Re: Line ending problem. On 11/5/07, Xavier Noria wrote: > Then write in binary mode and set $\ to that capture, aka the ouput > record separator. Use print instead of puts, since puts does not check > $\ but prints "\n" unconditionally. I'd suggest that rather than this you use write instead of print or puts and put the line breaks in explicitly. My concern over using $\ is that it's global so it affects any other Io objects, and I'm not sure it's a thread-safe global. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/