encode filenames as bytes to handle all locale setups

This was failing on environments that did not have any LANG or LC_* locale
variables set.  This is a valid setup, and is common in headless setups, so
it needs to be handled.

This also adds a new pass of the test suite without the locale env vars set
so that this situation is also tests on gitlab-ci, not only gpjenkins.

The error this caused was:
UnicodeEncodeError: 'ascii' codec can't encode characters in position 6-18: ordinal not in range(128)
This commit is contained in:
Hans-Christoph Steiner 2017-04-03 20:24:00 +02:00
parent 4d50ab9bad
commit e58ad330f4
4 changed files with 31 additions and 26 deletions

View file

@ -1,4 +1,4 @@
image: fdroid/ci:server-20161223
image: registry.gitlab.com/fdroid/ci-images:server-latest
test:
script: