Commit 2a055a69 authored by bertagaz's avatar bertagaz
Browse files

Merge branch 'test/10359-force-utf-8' into devel

parents a804982a 967731d1
......@@ -3,6 +3,12 @@ require "#{Dir.pwd}/features/support/extra_hooks.rb"
require 'time'
require 'rspec'
# Force UTF-8. Ruby will default to the system locale, and if it is
# non-UTF-8, String-methods will fail when operating on non-ASCII
# strings.
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
def fatal_system(str)
unless system(str)
raise"Command exited with #{$?}")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment