Skip to content
Browse files

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

…lity
  • Loading branch information...
1 parent 3b8a1e7 commit 0a550fa6ce1aae5abb0dd4f4a541ef661e7160ac @peterc peterc committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 build_lang_from_wordlists.rb
View
2 build_lang_from_wordlists.rb
@@ -9,5 +9,5 @@
next if lang == 'generators'
puts "Doing #{lang}"
filter = WhatLanguage.filter_from_dictionary(File.join(wordlists_folder, lang))
- File.open(File.join(languages_folder, lang + ".lang"), 'w') { |f| f.write filter.dump }
+ File.open(File.join(languages_folder, lang + ".lang"), 'wb') { |f| f.write filter.dump }
end

0 comments on commit 0a550fa

Please sign in to comment.
Something went wrong with that request. Please try again.