Force UTF-8 locale in automated test suite
Originally created by @anonym on #10359 (Redmine)
In the ‘the Unsafe Browser works in all supported languages
’ step we
read
config/chroot_local-includes/usr/share/tails/browser-localization/descriptions
from our Git. It contains some UTF-8 => non-ASCII characters, so if the
system locale is non-UTF-8 (e.g. POSIX) then we get this error when we
try to operate on it (split()
in this
case):
Then the Unsafe Browser works in all supported languages # features/step_definitions/unsafe_browser.rb:25
invalid byte sequence in US-ASCII (ArgumentError)
./features/step_definitions/unsafe_browser.rb:8:in `split'
[...]
We should force UTF-8, which can be done with:
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
Feature Branch: test/10359-force-utf-8