From: Charles O Nutter Date: 2006-08-01T04:21:37+09:00 Subject: Re: Does Ruby need a "line separator" class? ------=_Part_32587_19311525.1154373694166 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline It's a bit more complicated than that...bring this up on the JRuby dev list and others can chime in there as well. On 7/31/06, Wes Gamble wrote: > > In this particular case, could > java.lang.System.getProperty("line.separator") be used to handle > platform-specific reading/writing? That way, you get to piggyback on > the multiplatform support built into Java. If the low-level I/O code is > centralized, it seems like this would be the way to go. > > Are there performance implications for this approach? Seems like you > could just grab all of the system specific newline properties from the > System object upon the initialization of the JRuby interpreter and just > refer to them later. > > Wes > > > -- > Posted via http://www.ruby-forum.com/. > > -- Contribute to RubySpec! @ www.headius.com/rubyspec Charles Oliver Nutter @ headius.blogspot.com Ruby User @ ruby.mn JRuby Developer @ www.jruby.org Application Architect @ www.ventera.com ------=_Part_32587_19311525.1154373694166--