This repository has been archived by the owner on Nov 30, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure and assert tests run with UTF-8 external encoding
Some tests fail if the external/locale/filesystem encoding is ISO-8859-1 Rather than debugging environmental issues, we can control them per Ruby docs by running our CI specs via `ruby -E UTF-8 -S $spec_command`. See https://github.com/ruby/ruby/blob/ca24e581ba/encoding.c#L1674 Alternatively, we could control them via the environmental variables LANG, LC_ALL, LC_CTYPE in the .travis.yml or appveyor.yml with e.g. env: - LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 (which is the default on Travis) ( http://docs.travis-ci.com/user/ci-environment/#Environment-variables ) but I'm not sure how windows-compatible that is and it appears more reliable to be explicit in the runner, so that running script/run_build uses the correct encoding, and one doesn't need to, for example, gem install wwtd && wwtd --local to get the CI behavior Also, see see https://github.com/rubyspec/rubyspec/blob/91ce9f6549/core/encoding/find_spec.rb#L57
- Loading branch information