Merge lp:~gocept/landscape-client/fix-locale-dependency into lp:~landscape/landscape-client/trunk
Status: | Rejected |
---|---|
Rejected by: | Eric Snow |
Proposed branch: | lp:~gocept/landscape-client/fix-locale-dependency |
Merge into: | lp:~landscape/landscape-client/trunk |
Diff against target: |
32 lines (+17/-7) 1 file modified
landscape/package/skeleton.py (+17/-7) |
To merge this branch: | bzr merge lp:~gocept/landscape-client/fix-locale-dependency |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Snow (community) | Disapprove | ||
🤖 Landscape Builder | test results | Approve | |
Gocept | Pending | ||
Review via email: mp+321985@code.launchpad.net |
Description of the change
This MP tackles the issue of the dependency on a given locale in tests.
With [0] the LC_ALL=C was introduced for the check target in the Makefile to solve a locale dependency with python 2 and Serbian locale.
This turned out later on to complicate things as the file system default encoding is changed with this setting in a way, which is not easily changed from within a python program. Problems arose at the interface with C-extensions which partly had some decoding errors or replaced unknown characters.
The late phenomenon is actually also present in Python 2 and was tested as landscape.
Comments [1] [2]
This is also the testcase which gets fixed by this MP.
I personally don't like this solution, I would rather like to make a conditional test based on the given locale as this allows to use the feature of direct decoding of non-ascii characters with Python 3 given and UTF-8 supporting locale.
[0] http://
[1] https:/
[2] https:/
Unmerged revisions
- 1001. By Steffen Allner
-
Avoid locale dependency in tests.
Command: make ci-check /ci.lscape. net/job/ latch-test- xenial/ 3839/
Result: Success
Revno: 1001
Branch: lp:~gocept/landscape-client/fix-locale-dependency
Jenkins: https:/