codekitchen/ruby-protocol-buffers — pull request #31 by dpwright (2014-01-26 23:07:43+00:00)
Title: Fix Windows line-ending issues

On Windows, any newlines printed to $stdout are automatically converted
to "\r\n", which breaks the protocol buffer format. Switching $stdout to
binary mode immediately before printing the file prevents this from
happening.