Question regarding end of line terminator

I just tried to port an old ruby programm to jruby and had to change

if line =~ /{*\n/

to

if line =~ /{*\r/

to make it work.

Bug or Feature ?

BTW: Im using JRuby 1.4 and Ruby 1.8.6, both on Windows

Regards
Roger


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Roger,

Most probably a (long, long lived) bug that was finally fixed by Nick
in the upcoming JRuby 1.5 release.
This one:

http://jira.codehaus.org/browse/JRUBY-61 - [IO CRLF compatibility with
cruby on Windows]

You could try with the development JRuby version and see whether the
change is still needed, but I’m almost certain that no change would be
needed anymore.

If you don’t want to build the latest version on your own, we have
snapshots too:
http://ci.jruby.org/snapshots/

Thanks,
–Vladimir

On Wed, Dec 30, 2009 at 11:49 AM, Roger G. [email protected]
wrote:

Bug or Feature ?


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Hi Vladimir,

thanks for the info. The latest snapshot works.

Thanks
Roger

Am 30.12.2009 um 12:50 schrieb Vladimir S.:

change is still needed, but I’m almost certain that no change would be
wrote:

Bug or Feature ?


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email