lib/iso639.rb in iso639-1.0.0 vs lib/iso639.rb in iso639-1.0.1

- old
+ new

@@ -58,10 +58,10 @@ LanguagesByAlpha3Terminology = InsensitiveHash.new LanguagesByEnglishName = LanguagesByName = InsensitiveHash.new LanguagesByFrenchName = InsensitiveHash.new iso639_file = File.expand_path(File.join("..", "iso639", "ISO-639-2_utf-8.txt"), __FILE__) - File.readlines(iso639_file, mode: "r:UTF-8").each do |line| + File.readlines(iso639_file).each do |line| lang = Language.new *line.split("|") LanguagesByAlpha2[lang.alpha2.downcase.strip] = lang if lang.alpha2 LanguagesByAlpha3[lang.alpha3.downcase.strip] = lang if lang.alpha3 LanguagesByAlpha3Terminology[lang.alpha3_terminology.downcase.strip] = lang if lang.alpha3_terminology LanguagesByName[lang.name.downcase.strip] = lang if lang.name