Permalink
Browse files

Added darragh's suggestion to force binary mode for Windows compatibi…

…lity
  • Loading branch information...
1 parent 5a59e5b commit 3b8a1e702b96067a3451e1cd3499e00cb0e0d7d1 @peterc committed Sep 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 build_filter.rb
View
@@ -6,4 +6,4 @@
require 'lib/whatlanguage'
filter = WhatLanguage.filter_from_dictionary(ARGV[0])
-File.open(ARGV[1], 'w') { |f| f.write filter.dump }
+File.open(ARGV[1], 'wb') { |f| f.write filter.dump }

0 comments on commit 3b8a1e7

Please sign in to comment.