<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,7 +18,11 @@ module BEncode
 
     # Bdecodes the file located at +path+
     def load_file(path)
-      load(File.open(path).read)
+      if RUBY_PLATFORM =~ /(win|w)32$/
+        load(File.open(path, 'rb').read)
+      else
+        load(File.open(path).read)
+      end
     end
 
     def parse(scanner) # :nodoc:</diff>
      <filename>lib/bencode/decode.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2c0fcba630e1cff363d2645e7d6ee6fadcf98056</id>
    </parent>
  </parents>
  <author>
    <name>mikehodgson</name>
    <email>mhodgson@gmail.com</email>
  </author>
  <url>http://github.com/dasch/ruby-bencode-bindings/commit/d0005f053896b42647942f264d0685cf28a7a101</url>
  <id>d0005f053896b42647942f264d0685cf28a7a101</id>
  <committed-date>2009-05-17T13:11:35-07:00</committed-date>
  <authored-date>2009-05-17T13:11:35-07:00</authored-date>
  <message>Patched load_file to work properly under Windows</message>
  <tree>96b7200e82692a552d2116609d52565a4d7ed00a</tree>
  <committer>
    <name>mikehodgson</name>
    <email>mhodgson@gmail.com</email>
  </committer>
</commit>
