SolidCharity / LightBuildServer

LightBuildServer for building rpm and deb packages and running CI scripts, using linux containers
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

UnicodeDecodeError Problem with decoding the log line #188

Closed tpokorra closed 4 years ago

tpokorra commented 4 years ago

It is thrown here: https://github.com/SolidCharity/LightBuildServer/blob/master/lib/Shell.py#L42

how can I avoid this? how can I reproduce this with a simple test case?

tpokorra commented 4 years ago

to reproduce: see https://github.com/tpokorra/lbs-test/blob/master/testWithoutPkg/setup.sh

echo "Unicode issue: ✔  Verified Cypress!"
tpokorra commented 4 years ago

Perhaps this is a solution: https://adminswerk.de/python3-unicodedecodeerror-popen/ issues with universal_newlines=True Links to https://stackoverflow.com/questions/29546311/popen-communicate-throws-unicodedecodeerror