You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments