summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2016-12-24 09:08:55 +0000
committerintrigeri <intrigeri@boum.org>2016-12-24 09:08:55 +0000
commit3dfa3bbdfcb830591ffa413eaf18b93341702a9e (patch)
tree4c303f95c549447f0c852657ad1096701c2df6ce
parent7c8b6da7b9dc4f1e55d38cd356416522d988f35a (diff)
Test suite: adjust preferred locales used by "the Unsafe Browser works in all supported languages".
-rw-r--r--features/step_definitions/unsafe_browser.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/features/step_definitions/unsafe_browser.rb b/features/step_definitions/unsafe_browser.rb
index f168e83..a4535bc 100644
--- a/features/step_definitions/unsafe_browser.rb
+++ b/features/step_definitions/unsafe_browser.rb
@@ -13,7 +13,8 @@ def supported_torbrowser_languages
File.read(localization_descriptions).split("\n").map do |line|
# The line will be of the form "xx:YY:..." or "xx-YY:YY:..."
first, second = line.sub('-', '_').split(':')
- candidates = ["#{first}_#{second}.utf8", "#{first}.utf8",
+ candidates = ["#{first}_#{second}.UTF-8", "#{first}_#{second}.utf8",
+ "#{first}.UTF-8", "#{first}.utf8",
"#{first}_#{second}", first]
when_not_found = Proc.new { raise "Could not find a locale for '#{line}'" }
candidates.find(when_not_found) do |candidate|