From: james@... (James Adam) Date: 2003-02-16T00:34:49+09:00 Subject: Re: Ruby 1.8.0 bugs matz@ruby-lang.org (Yukihiro Matsumoto) wrote in message news:<1045208765.999279.3056.nullmailer@picachu.netlab.jp>... > Hi, > > In message "Ruby 1.8.0 bugs" > on 03/02/14, James Adam writes: > > |Can anyone confirm these bugs i've noticed in Ruby-1.8.0 on cygwin? > > From the discussion on ruby-dev mailing list, it is caused by "text > mode mount" on Cygwin. If you re-mount your directory in "binary > mode", there'd be no problem. > > And Cygwin Ruby maintainers are considering to make Cygwin Ruby to > force binary mode. > > matz. actually, i have the directory mounted in binmode and i still get this behaviour. here is the mount table for my system: $ mount C:\Cygwin\bin on /usr/bin type system (binmode) C:\Cygwin\lib on /usr/lib type system (binmode) C:\Cygwin on / type system (binmode) c: on /cygdrive/c type system (binmode) d: on /cygdrive/d type user (textmode,noumount) running the following script: f = File.open("test.txt", "w"); f.puts("line1\nline2\nline3"); f.close ....results in a file with LF only line-endings ir run in '/', but CR+LF line-endings if run in /cygdrive/c am i doing this wrong?