Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…lity
  • Loading branch information...
commit 0a550fa6ce1aae5abb0dd4f4a541ef661e7160ac 1 parent 3b8a1e7
Peter Cooper authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  build_lang_from_wordlists.rb
2  build_lang_from_wordlists.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.