chiark / gitweb /
encode filenames as bytes to handle all locale setups
authorHans-Christoph Steiner <hans@eds.org>
Mon, 3 Apr 2017 18:24:00 +0000 (20:24 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 3 Apr 2017 18:24:00 +0000 (20:24 +0200)
commite58ad330f4ab6900c12f84d0f242de1f0446cab2
tree2dd268e0df6bcf77be40a7d2119875cb77e2d780
parent4d50ab9badcd57b769644450d3d6872ebcc329f2
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)
.gitlab-ci.yml
fdroidserver/common.py
fdroidserver/index.py
fdroidserver/update.py