This is not "MinGW" but how files works on Windows.
On Windows files can be open as text-mode and binary-mode. Text-mode
is the default for Ruby.
On Linux/OSX, binary-mode is the only mode available.
If you want your file line-endings not be transformed by Ruby
automatically, open the file in binary mode:
File.open("test", "wb") { |f| f.write "a\rb" }
Sometimes I wish Ruby completely ignored Windows text-mode files and
used binary by default...
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
--
You received this message because you are subscribed to the Google Groups "RubyInstaller" group.
To post to this group, send email to rubyin...@googlegroups.com.
To unsubscribe from this group, send email to rubyinstalle...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyinstaller?hl=en.