Permalink
Browse files

No commit message

  • Loading branch information...
1 parent 0a550fa commit f987ed3e5855667369f5ebcf8fd94bfb6b2d58de @peterc peterc committed Sep 29, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/whatlanguage.rb
View
@@ -13,7 +13,7 @@ class WhatLanguage
def initialize(options = {})
languages_folder = File.join(File.dirname(__FILE__), "..", "lang")
Dir.entries(languages_folder).grep(/\.lang/).each do |lang|
- @@data[lang[/\w+/].to_sym] ||= BloominSimple.from_dump(File.read(File.join(languages_folder, lang)), &HASHER)
+ @@data[lang[/\w+/].to_sym] ||= BloominSimple.from_dump(File.new(File.join(languages_folder, lang), 'rb').read, &HASHER)
end
end

0 comments on commit f987ed3

Please sign in to comment.